I'm sorry, I couldn't get this to work.

Only works on 1 or other server where I type the command.

This is the exact code I'm using right now (except the channel name).

Code:
alias checkchan {
  var %n = $scon(0)
  while (%n) {
    if ($scon(%n).network == Kwik-Chat) {
      var %i = 1, %c = #channel1 #channel2
      while ($gettok(%c,%i,32)) { var %v1 = $v1
        echo -a I'm $iif($me ison %v1,ON $v2,NOT on $v2)
        inc %i
      }
    }
    elseif ($scon(%n).network == EFNet) {
      var %i = 1, %c = #channel3
      while ($gettok(%c,%i,32)) { var %v1 = $v1
        echo -a I'm $iif($me ison %v1,ON $v2,NOT on $v2)
        inc %i
      }
    }
    dec %n
  }
}


On Kwik-Chat, when I type /checkchan I see this as result
Quote:
I'm ON #channel1
I'm ON #channel2
I'm NOT on #channel3


But, on EFNet, when I type /checkchan I see this as result
Quote:
I'm NOT on #channel1
I'm NOT on #channel2
I'm ON #channel3


Please help,
Thanks