All pastes #594986 Raw Edit

Unnamed

public text v1 · immutable
#594986 ·published 2007-06-29 07:15 UTC
rendered paste body
on *:TEXT:!flood on:#bickels:{
  /unset %flood
/set %flood 1 }
on *:TEXT:!flood off:#bickels:{
  /unset %flood
/set %flood 2 }
on *:TEXT:*#bickels:{
  if (%flood == 2) {
    if (% [ $+ [ $nick ] ] == $null) {
      /set % [ $+ [ $nick ] ] $1-
      /timer 1 5 /unset % [ $+ [ $nick ] ]
    }
    if (% [ $+ [ $nick ] ] != $null) { 
      if (% [ $+ [ $nick ] ] == $1)
      /notice % $+ $chan $nick has been identified as flooding. To turn flood control on, type !flood on
      /unset % [ $+ [ $nick ] ]
      else { /unset % [ $+ [ $nick ] ] }
} } }
if (%flood == 1) {
  if (% [ $+ [ $nick ] ] != $null) {
    if (% [ $+ [ $nick ] ] == $1) { /mode $chan +b $address($nick,2)
      /notice $nick
      /notice %$chan If you feel that was an inproper ban,  unban them. If you want to turn this script off, type !flood off
      /unset % [ $+ [ $nick ] ] 
    }
    else { /unset % [ $+ [ $nick ] ] }
  }
  if (% [ $+ [ $nick ] ] == $null) {
    /set % [ $+ [ $nick ] ] $1-
    /timer 1 5 /unset % [ $+ [ $nick ] ]
} } }