AlexHopper commented on a Page, Silence on Flood  -  Aug 30, 2008

this is a good one =3

menu channel { 
  .$iif($group(#flood-kick).status iswm on, flood-kick is on, flood-kick is off) 
  ..Turn flood-kick off:disable #flood-kick
  ..Turn flood-kick on:enable #flood-kick
}

#flood-kick on
on *:TEXT:*:#:{
  if ($nick == $me) {
    halt
  }
  if ($nick isop $chan) {
    halt
  }
  inc -u5 %flood. [ $+ [ $nick ] ]
  if (%flood. [ $+ [ $nick ] ] == 8) {
    /mode $chan +q $+ $address( $nick , 2 )
    /msg $chan $nick You have been silenced for two minutes. Please don't flood.
    /msg #staff $nick has been silenced in $chan for flooding.
    /timer 1 120 /mode $chan -q $+ $address( $nick , 2 )
  }
}
#flood-kick end
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.