All pastes #564445 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-13 16:24 UTC
rendered paste body
;-----------------------------------------------------------------------------;
;*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
}