on *:text:`tkb*:#:{ if ($me != $op) { halt } elseif ($nick != $op) { notice $nick $nick $+ , you need to be op to use that command | halt } elseif ($2 isop $chan) { notice $nick $nick $+ , you need to be +a (admin) to use that command | halt } elseif ($2 == $me) { notice $nick $nick $+ , don't try to ban me. | 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) }