mIRC Homepage
Posted By: nico Colon in //tokenize | say does not work? - 02/10/12 10:49 PM
Good evening fellow mIRC users,

Can anyone help me why the colon is not printed following command:

//tokenize 32 a b | say $* $+ : hi

The result is:
a hi
b hi

Where as I would expect:
a: hi
b: hi

Thank you in advance
   nico, Founder and chairman of the Stop IRC Bullying Foundation
Posted By: drum Re: Colon in //tokenize | say does not work? - 03/10/12 12:53 AM
Not sure if this is possible. $* is quirky and not really officially supported. $* has to be handled independently of other identifiers since it doesn't follow the standard behavior of simply returning a value.
Posted By: Wims Re: Colon in //tokenize | say does not work? - 03/10/12 05:51 AM
What happens with $* is that mIRC takes the whole command and its parameter, replaces $* with `~$*, then evaluates the code so "say `~$* $+ : hi", resulting in "say `~$*: hi" and only then, at the end, replaces with the correct parameter from $N, removing any character sticked to it.
Posted By: Jigsy Re: Colon in //tokenize | say does not work? - 03/10/12 06:21 AM
Try:

//tokenize 32 a b | scon -r msg $!active $* $!+ : hi
Posted By: nico Re: Colon in //tokenize | say does not work? - 03/10/12 02:08 PM
Ah, I see. Thank you guys.
Posted By: Tomao Re: Colon in //tokenize | say does not work? - 03/10/12 09:41 PM
What's up with the good old while loop through the $gettok()?
© mIRC Discussion Forums