All pastes #709663 Raw Edit

Miscellany

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

on *:TEXT:*#*:#h-bot:{
  if ($nick !isreg $chan) { halt }
  elseif (*#* iswm $remove($1-,#pc,#general,,#rsmarket,#irchelp,#mirc,#rshelp,#swiftswitch,#help)) {
    inc %kbcount 1
    mode $chan +b ~q: $+ $address($nick,2) | timer 1 600 /mode $chan -b ~q: $+ $address($nick,2)
    msg $chan $nick is being muted for 30 minutes for: Advertising (Use of #). 
  }
}

on *:text:@*:#h-bot:{ 
  if ($nick !isreg $chan) { halt }
  mode $chan +b ~q: $+ $address($nick,2) | timer 1 600 /mode $chan -b ~q: $+ $address($nick,2)
  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}/)) { mode $chan +b ~q: $+ $address($nick,2) | timer 1 1800 /mode $chan -b ~q: $+ $address($nick,2)
    msg $chan $nick is being muted for 30 minutes for: Repetitious spamming of $+(',$regml(1),') 5+ times. 
  }
}