mIRC Home    About    Download    Register    News    Help

Print Thread
$chan(n) bug #146278 02/04/06 01:10 PM
Joined: Apr 2006
Posts: 1
K
Knap Offline OP
Mostly harmless
OP Offline
Mostly harmless
K
Joined: Apr 2006
Posts: 1
while you are connected on any server and while you are on one or more channels, tried to write //echo -a $chan(lol) or //echo -a $chan(-.-) or whichever thing within the two parentheses type (knap) (mint) (hello) etc...
you'll see that the mirc will gave always the number of the channel where you are.
example:
//echo -a $chan(knap) the mirc gave the same result that gave when you write //echo -a $chan(0)
I attend one postreply

Re: $chan(n) bug #146279 02/04/06 01:23 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
It's not a bug. In many mirc identifiers that accept a numeric parameter, a non-numeric argument is taken to mean 0, so the identifier returns the total number of items. In $chan(), that accepts either a number or a valid channel name (ie one that starts with a character in $chantypes), any string that is neither is considered 0.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com