Perhaps you mean $xor(%leet,1) which turns 0 to 1, 1 to 0. In case %leet = $null you can use $xor(%leet 0,1) to turn $null and 0 to 1, and again 1 to 0
Another thing to note is that a user may want to join a channel with a prefix other than #, such as &chan (local channels on most networks). $chantypes will return a list of supported chan prefixes
Not quite, /scon re-evaluates its parameters (similar to a timer) so that if you typed \"/aame text | more text\" the \'more text\' would be interpreted as a command. On the right track though, something like alias aame { set -ln %a $1- | scon -at1 ame % $+ a } would do
Not bad but since the only variable quantity here is $ticks, doing //echo -a $randa(1,10) $randa(1,10) $randa(1,10) will always yield the same random numbers
Covers everything? How about modulo, exponents and parentheses for complex operations? alias calculate { echo -a Answer: $calc($1-) } - raYmad, good work, fun alias
You deal with an INI file with only 1 section, why don\'t you use a hash table for this type of data structure? It\'s a more appropriate method of storage since hash tables are cached in volatile memory, has increase/decrease functions which you use quite a bit and are faster to access
Good idea, but it would be more accurate to check each mode set against $chanmodes which returns the channel modes supported by the network. The first 3 comma delimited tokens are modes which take a parameter
A good idea, only thing I\'d fault is the use of checking if ($1) && ($2) && ($3) to make sure 3 parameters were specified. It fails if I want to choose 0 as the beginning of a range, i.e. $rs(10,0,9) to get 10 random numbers since if (0) is false. A better method to check 3 parameters have been supplied is to see if ($0 = 3) where $0 returns the number of params passed to the alias
You can use a $findfile loop for iterations involving operations on each file returned by $findfile, so as an example: //var %x | .echo -q $findfile($mircdir,*.mrc,0,inc -s %x $file($1-)) | echo -a %x - also note that /var creates a local variable, one that terminates at the end of the running process, to avoid setting/unsetting global variables
You can use $str to generate N amount of dice with F number of faces, the results separated with a space: $($str($!r(1,F) $chr(32),N),2) - in this case you\'d replace F with 6 and N with $2