mIRC Homepage
Posted By: ner0 Comchans - 21/12/03 09:53 PM
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)
Posted By: Cheech Re: Comchans - 21/12/03 10:29 PM
$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
Posted By: Wiggle Re: Comchans - 22/12/03 05:35 PM
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.
© mIRC Discussion Forums