* removed convertcase
  use toupper (concat A B C D ....) instead

* moved several COMMAND macros to their function bodies

* cleaned up screenshot extension handling

* prefix screenshot argument with "screenshot/" and add correct extension
This commit is contained in:
ac-stef
2016-08-31 17:20:28 +02:00
parent 300d702619
commit 4b2767a96d
7 changed files with 66 additions and 128 deletions
-9
View File
@@ -448,15 +448,6 @@ const highestcn [
result $hcn
]
// convertcase - Zap lists of strings to lower/uppercase.
const convertcase [
if (> $numargs 1) [
tempalias tmpCCO []
loop ccl $numargs [ if (> $ccl 0) [ tmpCCO = (concatword $tmpCCO [ ] (getalias (format arg%1 (+ $ccl 2)))) ] [ tmpCCO = (concatword $tmpCCO $arg2) ] ]
if (!= $arg1 0) [ result (toupper $tmpCCO) ] [ result (tolower $tmpCCO) ]
]
]
ingall = 0
const ignoreall [ if $connected [ ingall = 1; loop ia (+ (highestcn) 1) [ ignore $ia ]; echo (blue)NOTE: (white)all clients currently on the server were ignored ] ]
const unignoreall [ if $connected [ ingall = 0; clearignored -1; echo (blue)NOTE: (white)all clients currently on the server were unignored ] ]