It's similiarly true for all listing identifiers. $nick $chan $window etc
I think the only identifier that strings them all together is $snicks, which lists all of $snick(#,%i). The only difference here is that $snicks goes by the $active window, where as $comchans should assume, $nick?
[color:000099]/comchans { var %s, %i = 0 | WHILE $comchan($nick,%i) { var %s = %s $ifmatch | inc %i } | return %s }[/color]
And you can tweek it to taste...
[color:000099]/comchans { var %s, %i = 0 | WHILE $comchan($nick,%i) { var %s = $addtok(%s,$ifmatch,44) | inc %i } | return %s }[/color]
- Raccoon