rendered paste bodyon *:TEXT: !kb $2
/mode # +b $2
on *:TEXT:!Tb *:#: {
if ($nick isop $chan) || ($nick ishop $chan) {
if ($me !isop $chan) && ($me !ishop $chan) {
notice $nick Error: Sorry I need halfop+ To do that.
halt
}
elseif ($2 !ison $chan) {
.notice $nick $2 isn't on $chan $+ . Syntax: !Tb <Nick> <Time> <Reason>
}
elseif ($3 !isnum) {
notice $nick The time for the ban is invalid, it must be a number. Syntax: !Tb <Nick> <Time> <Reason>
}
elseif (!$4) {
notice $nick Please specify a reason. Syntax: !Tb <Nick> <Time> <Reason>
}
else {
inc %kcount
Ban -ku [ $+ [ $calc(60 * $3) ] ] $chan $2 2 $2 $+ :8 $3 Minute Ban. 7Reason: $4 ... 4 $2 IS OWNED %kcount 3 NOOBS OWNED
notice $2 You have been banned from $chan for $3 minutes Reason: $4-
}
}
}