mIRC Home    About    Download    Register    News    Help

Print Thread
#64737 21/12/03 09:53 PM
Joined: Dec 2003
Posts: 7
N
ner0 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Dec 2003
Posts: 7
is there an identifier for all comchans
like $comchan($nick,1)
but for all comchans
(any command to find this will do)

thanx a lot (ner0)

#64738 21/12/03 10:29 PM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
$comchan(nick,0) returns the total number of common channels
$comchan(nick,1) returns the first common channel name

so perhaps if you need the name you could use %x and a while loop

set %x $comchan(nickname,0)
while %x > 0
something of the sort

hope that helps

#64739 22/12/03 05:35 PM
Joined: Dec 2002
Posts: 14
W
Pikka bird
Offline
Pikka bird
W
Joined: Dec 2002
Posts: 14
You could make your own identifier for it.

Example:
Code:
alias comchans { var %n = 1, %poop | while ($comchan($$1,%n)) { %poop = $addtok(%poop,$ifmatch,32) | inc %n } | return %poop }


And use it like $comchans(nickname)

Hope that helps smile.


Link Copied to Clipboard