mIRC Home    About    Download    Register    News    Help

Topic Options
#42247 - 17/08/03 12:36 AM Voice Checking Problem
Deep3D Offline
Fjord artisan

Registered: 09/12/02
Posts: 476
Loc: Norway
Like somtimes, there's no sutch nick on channel.. i need to add "if $nick ison $chan" into this code.. anyone can help me?

Code:
check {
  set -u0 %chan $1
  if ($me ison %chan) && (($me isop %chan) || ($me ishop %chan)) {
    if ($nick(%chan, 0, a, vo) > 0) {
      set -u0 %a 1
      while (%a <= $nick(%chan, 0, a, vo)) {
        set -u0 %nicks $addtok(%nicks, $nick(%chan, %a, a, vo), 32)
        if ($numtok(%nicks, 32) == $modespl) || (%a == $nick(%chan, 0, a, vo)) {
          mode %chan + [ $+ [ $str(v, $modespl) ] ] %nicks
          unset %nicks
        }
        inc -u0 %a
      }
    }
  }
}

Top
#42248 - 17/08/03 03:32 AM Re: Voice Checking Problem
MTech Offline
Fjord artisan

Registered: 05/03/03
Posts: 437
Code:
check {
  set -u0 %chan $1
  if ($me ison %chan) && (($me isop %chan) || ($me ishop %chan)) && ($nick ison $chan) {
    if ($nick(%chan, 0, a, vo) > 0) {
      set -u0 %a 1
      while (%a <= $nick(%chan, 0, a, vo)) {
        set -u0 %nicks $addtok(%nicks, $nick(%chan, %a, a, vo), 32)
        if ($numtok(%nicks, 32) == $modespl) || (%a == $nick(%chan, 0, a, vo)) {
          mode %chan + [ $+ [ $str(v, $modespl) ] ] %nicks
          unset %nicks
        }
        inc -u0 %a
      }
    }
  }
}

Top