Public feed #601499

Someone

public text v1 · immutable
Raw Edit
·published 2007-07-03 15:23 UTC
rendered paste body
on $*:TEXT:/^!own/Si:#:{
  if ($me !ishop $chan) || ($me !isop $chan) { notice $nick [ERR]: I need halfop or above to do that. | halt }
  if ($nick isvoice $chan) || ($nick isreg $chan) { notice $nick [ERR]: You need halfop or above to do that. | halt }
  if (!$3) { notice $nick [ERR]: Syntax - !own <nick> <time> [reason] | halt }
  if ($2 !ison $chan) { notice $nick [ERR]: $2 is not in the channel. | halt }
  if ($3 !isnum) { notice $nick [ERR]: Time must be a number (in minutes). | halt }
  if ($2 isop $chan) || ($2 ishop $chan) { notice $nick [ERR]: I will not kick halfops or above. | halt }
    inc %kicked
    ban $+(-ku,$calc($3 * 60)) $chan $2 2 ¤ $3 Min Ban ¤ Reason: $iif($4,$4-,None) ¤ Noobs Kicked in the Ball(s): %kicked ¤
  }