rendered paste bodyon *:text:!tb *:#:{
if ($nick isreg $chan) { /notice $nick Sorry, but a regular user can't use this. }
elseif ($nick isvoice $chan) { /notice $nick Sorry, but a voiced use can't use this command. }
elseif ($nick isprotect $chan) {
if ($2 isprotect $chan) { /notice $nick Sorry, but you may not ban another admin. }
else {
if ($3 == $null) { /notice $nick How about entering a time in minutes? }
elseif ($3 isnum) {
if ($4 == $null) {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: $3 minutes, reason for ban: Request.
/timertimeban 1 $calc($3 * 60) /mode $chan -b $address($2,2)
}
else {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: $3 minutes, reason for ban: $4 $+ .
/timertimeban 1 $calc($3 * 60) /mode $chan -b $address($2,2)
}
}
else {
if ($4 == $null) {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: 10 minutes, reason for ban: Request.
/timertimeban 1 600 /mode $chan -b $address($2,2)
}
else {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: 10 minutes, reason for ban: $4 $+ .
/timertimeban 1 600 /mode $chan -b $address($2,2)
}
}
}
}
elseif ($nick isop $chan) {
if ($2 isprotect $chan) { /notice $nick Sorry, you may not ban an admin. }
else {
if ($3 == $null) { /notice $nick How about entering a time in minutes? }
elseif ($3 isnum) {
if ($4 == $null) {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: $3 minutes, reason for ban: Request.
/timertimeban 1 $calc($3 * 60) /mode $chan -b $address($2,2)
}
else {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: $3 minutes, reason for ban: $4 $+ .
/timertimeban 1 $calc($3 * 60) /mode $chan -b $address($2,2)
}
}
else {
if ($4 == $null) {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: 10 minutes, reason for ban: Request.
/timertimeban 1 600 /mode $chan -b $address($2,2)
}
else {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: 10 minutes, reason for ban: $4 $+ .
/timertimeban 1 600 /mode $chan -b $address($2,2)
}
}
}
}
elseif ($nick ishop $chan) {
if ($2 isprotect $chan) { /notice $nick Sorry, but you may not ban an admin. }
elseif ($2 isop $chan) { /notice $nick Sorry, but you may not ban an operator. }
elseif ($2 ishop $chan) { /notice $nick Sorry, but you may not ban another half-operator. }
else {
if ($3 == $null) { /notice $nick How about entering a time in minutes? }
elseif ($3 isnum) {
if ($4 == $null) {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: $3 minutes, reason for ban: Request.
/timertimeban 1 $calc($3 * 60) /mode $chan -b $address($2,2)
}
else {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: $3 minutes, reason for ban: $4 $+ .
/timertimeban 1 $calc($3 * 60) /mode $chan -b $address($2,2)
}
}
else {
if ($4 == $null) {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: 10 minutes, reason for ban: Request.
/timertimeban 1 600 /mode $chan -b $address($2,2)
}
else {
/mode $chan +b $address($2,2)
/kick $chan $2 Time ban will last: 10 minutes, reason for ban: $4 $+ .
/timertimeban 1 600 /mode $chan -b $address($2,2)
}
}
}
}
}