Horrible simple thing.. got asked to make a while back.. so I did, came up with this, it's alright I guess..
Again someone asked me to make there crap a little 'prettier' and this is the end result
on *:NOTICE:*:*: {
if (%noticeprotection) {
if (%notice. [ $+ [ $wildsite ] ] == $null) {
set -u8 %notice. [ $+ [ $wildsite ] ] 1
RETURN
}
else { inc %notice. [ $+ [ $wildsite ] ] }
if (%notice. [ $+ [ $wildsite ] ] > 5 && %notice.check == $null) {
set -u6 %notice.check 1
.ignore -nu45 $wildsite
echo -a 7>4Attention7< Notice flood from $wildsite - Counter Measures Taken : Ignoring notices for 45secs...
}
}
}
menu menubar,channel {
$iif(%noticeprotection != $false,[On],[Off]) Notice protection:{
set %noticeprotection $iif(%noticeprotection == $false,$true,$false)
echo -a 7>4Attention7< 14Notice Protection is now 7 $iif(%noticeprotection == $true,ACTIVE,INACTIVE)
}
}
only other nice bit on it.. is a short echo on timer elapse saying ignore lifted .
these are just positive comments Renegade just to make the snippet more appealing to others as it has good potential . i have already had mine fire off 6 or 7 times since running it.
1 big issue though ... ON CONNECT .. it batters the notice script to heck. cuts off all the motd / server notices :)
just as an idea ... could you edit your introduction to include for users less apt at understanding code so they know how to edit this for amount of notices , time frames etc.
otherwise it looks ok ..
edited..
7>4Attention7< 14Notice Protection is now 7 ACTIVE
12<21012:215pm12> -Auto_Help- test
12<21012:215pm12> -Auto_Help- test
12<21012:215pm12> -Auto_Help- test
12<21012:215pm12> -Auto_Help- test
12<21012:215pm12> -Auto_Help- test
12<21012:215pm12> -Auto_Help- test
7>4Attention7< Notice flood from !@backup.bot.help.com - Counter Measures Taken : Ignoring notices for 45secs...
12<21012:216pm12> -Auto_Help- test
well it works.. :) gets a 6. maybe more with a more indepth introduction