$comchanlist
Posted by bunkahumpa
Friday, June 18, 2004
Description: Lists common channels with a specified nick.

Usage: $comchanlist(nick)
Example: $comchanlist(bmk) == @#script @#script-staff @#scriptclass @#script-test


alias comchanlist {
  var %x = 1
  while (%x <= $comchan($$1,0)) {
    if ($$1 isop $comchan($$1,%x)) var %chan = @ $+ $comchan($$1,%x)
    elseif ($$1 ishop $comchan($$1,%x)) var %chan = $chr(37) $+ $comchan($$1,%x)
    elseif ($$1 isvoice $comchan($$1,%x)) var %chan = + $+ $comchan($$1,%x)
    else var %chan = $comchan($$1,%x)
    var %chans = $+(%chans,$chr(32),%chan)
    inc %x
  }
  return %chans
}


Edit: Changed @ to + for voice, must have overlooked it by scripting it fast (thanks knightrage :P).
Subject line
Posted by TrioN
Tuesday, August 07, 2007 06:51pm PDT
[^B][ $comchans(testnick) ] == $null - 0ms
if the person isnt in any channels as me.. it should be like

[ $comchans(testnick) ] == no chans
or something :/ just a suggestion
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world