mIRC Home    About    Download    Register    News    Help

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

#66817 06/01/04 05:35 PM
Joined: Jan 2003
Posts: 45
R
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
#66818 06/01/04 05:40 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
hmm, okay.. thanks

#66819 06/01/04 07:40 PM
Joined: Jan 2003
Posts: 3,012
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
#66820 06/01/04 08:47 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
thanks.. grin


Link Copied to Clipboard