Flood Protection

By Sephiroth on Dec 07, 2005

Just a Flood Protection. So if someone flood's in a channel you have operator status in it kicks them for it.

on @*:TEXT:*:#: { 
  if (%flood2. [ $+ [ $wildsite ] ] == $null) {
    set -u5 %flood2. [ $+ [ $wildsite ] ] 1
  }
  elseif (%flood2. [ $+ [ $wildsite ] ] >= 10) {
    kick $chan $nick Flood Protection Activated. No Flooding.
    unset %flood2. [ $+ [ $wildsite ] ]
  } 
  else { inc -u5 %flood2. [ $+ [ $wildsite ] ] } 
}

Comments

Sign in to comment.
Jethro   -  Dec 29, 2009

I suppose the code is pretty much the same as doing:

on @*:TEXT:*:#:inc -u3 $+(%,$nick,$wildsite) | $iif($($+(%,$nick,$wildsite),2) >= 10,kick # $nick Flood Protection Activated. No Flooding)

Although I'd adjust 5 to 3 secs.

 Respond  
Pyker   -  Dec 29, 2009

This script is awesome. Recommended.

 Respond  
ChiefDean   -  Dec 13, 2009

I personally like the script! it sure helped me, with a little ajustments to make it suit me better, it was perfect!

 Respond  
Whatever   -  Dec 08, 2005

It\'s 10 lines in 5 seconds from what I can make out.

 Respond  
RoninWarrior   -  Dec 07, 2005

what is the % of flood line 5 in 10 seconds?

 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.