mIRC Home    About    Download    Register    News    Help

Topic Options
#75358 - 15/03/04 04:39 PM Channels in a variable
ST3V3 Offline
Ameglian cow

Registered: 03/02/03
Posts: 34
Loc: Bristol, United Kingdom
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,
_________________________
~ Steve
http://www.steves-network.com

Top
#75359 - 15/03/04 04:44 PM Re: Channels in a variable
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
unset %chans
var %i 1
while $chan(%i) {
set %chans %chans $chan(%i)
inc %i
}
_________________________
New username: hixxy

Top
#75360 - 15/03/04 04:52 PM Re: Channels in a variable
ST3V3 Offline
Ameglian cow

Registered: 03/02/03
Posts: 34
Loc: Bristol, United Kingdom
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,
_________________________
~ Steve
http://www.steves-network.com

Top
#75361 - 15/03/04 04:59 PM Re: Channels in a variable
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
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.


Edited by tidy_trax (15/03/04 05:13 PM)
_________________________
New username: hixxy

Top