;-----------------------------------------------------------------------------;
;*Timeban script v0.1 by Kiddo* ;
;!Tb <time in minutes> <nick> (Ex: !Tb 1 kiddo (will ban kiddo for 1 minute)) ;
;!Tb.stats will show how many timebans there have been in that channel. ;
;-----------------------------------------------------------------------------;
alias c1 { return $+($chr(3),04,$1-) }
alias c2 { return $+($chr(3),07,$1-) }
alias c3 { return $+($chr(3),02,$1-) }
on *:text:!tb*:#:{
if ($nick isop $chan) || ($nick ishop $chan) {
if ($me isop $chan) || ($me ishop $chan) {
if ($3 isvoice $chan) || ($3 isreg $chan) {
ban $+(-ku,$calc($2 * 60)) $chan $3 2 Banned for $3 Minutes
}
else .notice $nick I wont tempban halfop or op
}
else .notice $nick I need halfop or op to do that
}
else .notice $nick You need halfop or op to use this
}