All pastes #612460 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-10 12:41 UTC
rendered paste body
on $*:TEXT:/^[!@.](tb|tempban)/Si:#PCPlace: {
  if ($2 !ison $chan) {
    .notice $nick $2 has to be on the channel before they can be muted
    halt
  }
  if ($3 == $null) {
    .notice $nick You must specify the amount of time in minutes.
    halt
  }
  if ($3 > 5) {
    .notice $nick The bantime must be five minutes or less
    halt
  }
  if ($2 !isreg $chan) {
    .notice $nick You cannot ban staff members.
    halt
  }
  if ($nick !isreg $chan) {
    ban $+(-ku,$calc($3 * 60)) $chan $2 2 Reason: $+($4-,$chr(41)) $+($chr(40),$3) minutes
    halt
  }
  .notice $nick This command is restricted to Voices, Half-Operators and Operators.
}