ON :TEXT::#: {
if ($strip($1) == !tb) {
if ($nick isop $chan) || ($nick ishop $chan) {
if ($me isop $chan) || ($me ishop $chan) {
var %d = $iif($strip($3) > 0, $calc($v1 86400), 0)
var %w = $iif($strip($4) > 0, $calc($v1 604800), 0)
var %y = $iif($strip($5) > 0, $calc($v1 * 3153600), 0)
var %secs = $calc(%d + %w +%y)
ban $+(-u,%secs) $chan $strip($2)
kick $chan $strip($2) $strip($2) Is Banned For %y Years, %w Weeks, %d Days.
}
}
}
}
-----------NOT TESTED-----------
Type !tb nick day(s) week(s) year(s)
For 0 days/weeks/years use 0 .
I didn't add the counting part.. and the !isop you can add them easily though.. or not add them.. npt so important
Sorry for the messy format i'm on Android right now..