mIRC Homepage
Posted By: Deep3D $chan - 06/01/04 05:30 PM
What's the $chan for display all channels that im in? I don't remember it, and diden't find it in the help file.
Posted By: rela Re: $chan - 06/01/04 05:35 PM
From the help file:
Code:
$chan(0)        returns the number of channels you are on
$chan(2)        returns the name of the 2nd channel you are on
 

Now make a while loop and you can see al the channels.
Posted By: Deep3D Re: $chan - 06/01/04 05:40 PM
hmm, okay.. thanks
Posted By: KingTomato Re: $chan - 06/01/04 07:40 PM
alias allchans {
var %c = 1
while ($chan(%c)) {
var %all = $addtok(%all, $ifmatch, 44)
/inc %c
}
/echo -a I am in channels %all
return %all
}
Posted By: Deep3D Re: $chan - 06/01/04 08:47 PM
thanks.. grin
© mIRC Discussion Forums