All pastes #112276 Raw Edit

$IsBot()

public text v1 · immutable
·published 2006-08-02 20:17 UTC
rendered paste body
alias gb {
  if (!$1) {
    echo -a 02 */GB Insufficient Parameters\* Ex. /GB <nick> [MaskType 1-5] <comment>
    halt
  }
  else {
    Var %i = $chan(0), %bantype = $iif($2 isnum,$2,3)
    WHILE (%i) {
      if (($me isop $chan(%i)) || ($me ishop $chan(%i))) {
        msg $chan(%i) 4Global:12 Banning $1 ( $+ $address($1,%bantype) $+ ) in all channels in which I have the power to do so. Reason: $+ 4 $iif($2 !isnum,$2-,$3-) 
        mode $chan(%i) +b $address($1,%bantype)
      }
      Dec %i
    }
  }
}