mIRC Home    About    Download    Register    News    Help

Print Thread
#75358 15/03/04 04:39 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
Can someone please tell me how to set all the channels on the current server to a variable in this format:
#chan1 #chan2 #chan3 #chan4 #chan5

Thanks,

#75359 15/03/04 04:44 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
unset %chans
var %i 1
while $chan(%i) {
set %chans %chans $chan(%i)
inc %i
}


New username: hixxy
#75360 15/03/04 04:52 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
Sorry but i dont think i explained properly i mean all the channels on the server, the ones that show up when you type /list smile

Thanks,

#75361 15/03/04 04:59 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
raw 321:*:{ 
unset %channels 
;window -c "channels list"
;haltdef
}
raw 322:*:{ 
set %channels %channels $2 
;haltdef
}

still have to type /list
edit: uncomment (remote the ;'s) the script if you don't want the channel list window to show.

Last edited by tidy_trax; 15/03/04 05:13 PM.

New username: hixxy

Link Copied to Clipboard