Notice Flood Protection
Written by Kintar0

Some users like to notice flood instead of text flooding. I've seen many scripts which think text is the only way to flood and ignore notice floods totally. Here we'll cover simple personal notice flood protection. The code below goes into mIRC remotes.

on *:notice:*:*: { if (%notice. [ $+ [ $wildsite ] ] == $null) { set -u8 %notice. [ $+ [ $wildsite ] ] 1 return } else { inc %notice. [ $+ [ $wildsite ] ] } if (%notice. [ $+ [ $wildsite ] ] > 3 && %notice.check == $null) { set -u6 %notice.check 1 .ignore -nu45 $wildsite echo -s *** Notice flood from $wildsite - Ignoring notices for 45secs... } }

Above, we have mIRC listen to any notice, if the user exceeds 3 notices within 8 seconds, mIRC auto ignores the host for 45 seconds. You may copy/paste the code above into remotes. The code is explained below.

on *:notice:*:*: { ; Listens for any notices if (%notice. [ $+ [ $wildsite ] ] == $null) { ; Checks if user has records of noticing you... set -u8 %notice. [ $+ [ $wildsite ] ] 1 return ; If the user has no record, mIRC creates a variable for the user } else { inc %notice. [ $+ [ $wildsite ] ] } ; If the user has a record, mIRC increases the variable by 1 if (%notice. [ $+ [ $wildsite ] ] > 3 && %notice.check == $null) { ; Checks if user has 3 or more notices recorded ; Also checks if %notice.check is set, used to prevent from flooding yourself ; You may change 3 to something that fits your needs, dont set it too low set -u6 %notice.check 1 .ignore -nu45 $wildsite echo -s *** Notice flood from $wildsite - Ignoring notices for 45secs... ; Ignore's user's host for 45 seconds... ; You may change 45 to anything you wish } }

If you find any errors or have any questions/comments, please contact us via email, memo, or our script forum. Thanks for your time.

2000-2001 ClanX Scripterz Organization