on *:TEXT:!mute*:#: {
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)) {
inc %kcount
mode $chan +b ~q: $+ $address($$2,2) 3 8,2 $2 is now muted:13,2 ( $+ %kcount $+3
.notice $2 You have been banned from $chan for $3 minutes Reason: $4- - $3
timer 1 $calc($3 * 60) .notice $2 You have been unbanned from $chan
}
}