mIRC Home    About    Download    Register    News    Help

Print Thread
$chan #66816 06/01/04 05:30 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
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.

Re: $chan #66817 06/01/04 05:35 PM
Joined: Jan 2003
Posts: 45
R
rela Offline
Ameglian cow
Offline
Ameglian cow
R
Joined: Jan 2003
Posts: 45
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.


@#botwars @Kreynet
Re: $chan #66818 06/01/04 05:40 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
hmm, okay.. thanks

Re: $chan #66819 06/01/04 07:40 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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
}


-KingTomato
Re: $chan #66820 06/01/04 08:47 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
thanks.. grin