All pastes #87851 Raw Edit

Mine

public text v1 · immutable
·published 2006-07-14 07:33 UTC
rendered paste body
on $*:TEXT:/^[!@.](kick|k) \w+/i:#: {
  if ($readini(channels.ini, $chan, status) == $null) halt
  elseif ($readini(channels.ini, $chan, status) == deactivated) halt
  elseif ($readini(channels.ini, $chan, status) == activated) {
    if ($nick ishop #) || ($nick isop #) || ($address($nick,2) == *!*@is.a.fraud.com) {
      if (($me ishop #) || ($me isop #)) {
        if ($$2 == $me) || ($address($$2,2) == *!*@is.a.fraud.com) {
          notice $nick You cannot kick this person
          halt
        }
        elseif ($$2 ison #) {
          if ($nick ishop #) && ($$2 isop #) notice $nick You cannot kick an op!
          elseif ($nick ishop #) && ($$2 ishop #) notice $nick You cannot kick a halfop!
          else {
            inc %knum
            kick # $$2 $3- 14<Kick $chr(35) $+ %knum $+ >
          } 
        }
        else notice $nick $$2 isn't in $chan at the moment
      }
      else notice $nick I don't have access to kick $$2- from $chan
    }
  }
}