All pastes #709643 Raw Edit

Miscellany

public text v1 · immutable
#709643 ·published 2007-09-24 21:01 UTC
rendered paste body
Syntax for $timemute. $timemute(<chan>,<time>,<person>)

alias timemute { return mode $1 +b ~q: $+ $address($3,2) | timer 0 $2 /mode $1 -b ~q: $+ $address($3,2) }

on *:TEXT:*#*:#h-bot:{
  if ($nick !isreg $chan) { halt }
  elseif (*#* iswm $remove($1-,#pc,#general,,#rsmarket,#irchelp,#mirc,#rshelp,#swiftswitch,#help)) {
    inc %kbcount 1
    $timemute($chan,1800,$nick) 
    msg $chan $nick is being muted for 30 minutes for: Advertising (Use of #). 
  }
}

on *:text:@*:#h-bot:{ 
  if ($nick !isreg $chan) { halt }
  $timemute($chan,600,$nick)
  msg $chan $nick is being muted for 10 minutes for: Public commands (Use of @). 
}

on *:TEXT:*:#h-bot: {
  inc %floodkick
  if ($nick !isreg $chan) { halt }
  if ($regex($1-,/(.+?)\1{5}/)) $timemute($chan,<time>,$nick) 
msg $chan $nick is being muted for 30 minutes for: Repetitious spamming of $+(',$regml(1),') 5+ times. }