All pastes #85664 Raw Edit

Spitfire3292

public text v1 · immutable
·published 2006-07-12 02:59 UTC
rendered paste body
on *:TEXT:!*:#:{ if (($gettok($1,2,32) == op) || ($gettok($1,2,32) == o)) { 
    if ($nick isop $chan) { 
      /mode $chan +o $2
      halt
    } 
    elseif ($nick !isop $chan) {
      notice $nick You don't have the power to use that command!
      halt
    }
    if (($gettok($1,2,32) == halfop) || ($gettok($1,2,32) == hop) || ($gettok($1,2,32) == h)) { 
      if ($nick isop $chan) { 
        /mode $chan +h $2
        halt
      }
      elseif ($nick !isop $chan) {
        notice $nick You don't have the power to use that command!
        halt
      }
      if (($gettok($1,2,32) == voice) || ($gettok($1,2,32) == v)) { 
        if (($nick ishop $chan) || ($nick isop $chan)) { 
          /mode $chan +v $nick
          halt
        }
        elseif (($nick !ishop $chan) || ($nick !isop $chan)) { 
          notice $nick You don't have the power to use that command!
          halt
        }
        if (($gettok($1,2,32) == deop) || ($gettok($1,2,32) == deo)) { 
          if ($nick isop $chan) { 
            /mode $chan -o $2
            halt
          } 
          elseif ($nick !isop $chan) {
            notice $nick You don't have the power to use that command!
            halt
          }
          if (($gettok($1,2,32) == dehalfop) || ($gettok($1,2,32) == dehop) || ($gettok($1,2,32) == deh)) { 
            if ($nick isop $chan) { 
              /mode $chan -h $2
              halt
            }
            elseif ($nick !isop $chan) {
              notice $nick You don't have the power to use that command!
              halt
            }
            if (($gettok($1,2,32) == devoice) || ($gettok($1,2,32) == dev)) { 
              if (($nick ishop $chan) || ($nick isop $chan)) { 
                /mode $chan -v $nick
                halt
              }
              elseif (($nick !ishop $chan) || ($nick !isop $chan)) { 
                notice $nick You don't have the power to use that command!
                halt
              }
            }
          }
        }
      }
    }
  }