All pastes #720218 Raw Edit

Miscellany

public text v1 · immutable
#720218 ·published 2007-09-30 02:32 UTC
rendered paste body
on *:text:`tkb*:#:{
  if ($2 == $me) { notice $nick $nick $+ , don't try to ban me. | halt }
  elseif ($2 isop $chan) { 
    if ($nick isprotect $chan) {
      if ($3 == $null) { notice $nick to KB someone for an amount of time use this format: $&
        `tkb nick time (in seconds) reason | halt }
      elseif ($4 == $null) && ($3 <= 60) goto one
      elseif ($4 == $null) && ($3 >= 61) goto two
      elseif ($3 <= 60) goto three
      elseif ($3 >= 61) goto four
    }
    else { notice $nick $nick $+ , you need to be +a (admin) to use that command. | halt }
  }
  elseif ($2 == $null) { notice $nick to KB someone for an amount of time use this format: $&
    `tkb nick time (in seconds) reason | halt }
  elseif ($3 == $null) { notice $nick to KB someone for an amount of time use this format: $&
    `tkb nick time (in seconds) reason | halt }
  elseif ($4 == $null) && ($3 <= 60) goto one
  elseif ($4 == $null) && ($3 >= 61) goto two
  elseif ($3 <= 60) goto three
  elseif ($3 >= 61) goto four
  :one
  mode $chan +b $address( $2 ,2)
  kick $chan $2 You have been banned for4 $3 3 $+ seconds. Requested by4 $nick
  timer 1 $3 mode $chan -b $address( $2 ,2)
  :two
  mode $chan +b $address( $2 ,2)
  kick $chan $2 You have been banned for4 $calc( $3 /60) 3 $+ minutes. Requested by4 $nick
  timer 1 $3 mode $chan -b $address( $2 ,2)
  :three
  mode $chan +b $address( $2 ,2)
  kick $chan $2 You have been banned for4 $3 3 $+ seconds. $&
    Reason: $4- $+ . Requested by4 $nick
  timer 1 $3 mode $chan -b $address( $2 ,2)
  :four
  mode $chan +b $address( $2 ,2)
  kick $chan $2 You have been banned for4 $calc( $3 /60) 3 $+ minutes. $&
    Reason: $4- $+ . Requested by4 $nick
  timer 1 $3 mode $chan -b $address( $2 ,2)
}