All pastes #561668 Raw Edit

Tb Script

public text v1 · immutable
·published 2007-06-12 15:04 UTC
rendered paste body
on *:TEXT:!tb*:#: {
  if (($me == Cutthroat) || ($me == Subwaibot)) {
    if (($nick isop $chan) || ($nick ishop $chan)|| ($nick == Camels)) {
      if (!$nick($chan,$2)) {
        .notice $nick $2 isn't on $chan
      }
      elseif ($3 !isnum) {
        .notice $nick The time for the ban is invalid, it must be a number.
      }
      elseif (!$4) {
        .notice $nick Please put a reason.
      }
      elseif ($nick($chan,$2,oh)) {
        notice $nick I will not use this command on Ops and Halfops
      }
      elseif $(nick($chan,$nick,oh)) {
        ban $+(-,ku,$calc($3 * 60)) $chan $2 3 1 REASON: $4-
      }

    }
  }
}