cleanup
* 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:
@@ -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 ] ]
|
||||
|
||||
Reference in New Issue
Block a user