rendered paste bodyon *:TEXT:!tb*:#:{
if ($nick isop $chan) || ($nick ishop $chan) || ($nick == bizzenbounce) {
if ($2 == [Bizz]DHBot) { notice $nick You cannot ban $2 }
elseif ($left($3,1) == .) {
if ($2 isvoice $chan) {
/mode $chan -v $2
/ban -u $+ $remove($3,.) $chan $2 2
}
else {
/ban -u $+ $remove($3,.) $chan $2 2
/notice $2 Banned by: $nick $+ . Banned for: $remove($3,.) $+ seconds. Reason for ban: $4-
}
}
else {
if ($2 isvoice $chan) {
/mode $chan -v $2
/ban -u $+ $calc($3 * 60) $chan $2 2
}
else {
/ban -u $+ $calc($3 * 60) $chan $2 2
/notice $2 Banned by: $nick $+ . Banned for: $3 minutes. Reason for ban: $4-
}
}
}
else {
notice $nick You are not authorised to use this command.
}
}