mIRC Homepage
Posted By: Wims /filter - 11/07/07 10:29 PM
I don't know if it's bug or not.
I'm trying to use "filter -kng", specifying an alias which is the one that contains the filter command :

alias ex filter -kng file ex /pcre/

I use a "if ($1 !isnum)" statement coupled with an "else" statement to determine whether I do call the alias manually or the filter command does,
and I'm confused seeing that "echo $1" displays the whole line and not only the number that the 'n' filter flag adds.
Instead, using $token($1,1,32) displays the number only.ks.
Posted By: qwerty Re: /filter - 11/07/07 11:09 PM
It has always worked like that and rightfully so imo; by storing the entire line in $1, multiple spaces are preserved (they wouldn't be if the line was tokenized to $1-).
Posted By: Riamus2 Re: /filter - 12/07/07 12:08 AM
If you don't care about multiple spaces, then you may want to consider just using /tokenize to split it into parts.
Posted By: Wims Re: /filter - 12/07/07 12:16 AM
ok thx smile
© mIRC Discussion Forums