mIRC Home    About    Download    Register    News    Help

Print Thread
Voice Checking Problem #42247 16/08/03 11:36 PM
Joined: Dec 2002
Posts: 476
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 476
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
      }
    }
  }
}

Re: Voice Checking Problem #42248 17/08/03 02:32 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
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
      }
    }
  }
}