Notice protection

By Renegade on May 24, 2009

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)
  }
}

Comments

Sign in to comment.
montague   -  Jun 27, 2010

btw, if this protection could add an exempt for bot and doesn't ignore Chanserv, NickServ and Memoserv then it would be much more better

 Respond  
Cheiron   -  Jul 19, 2009

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 :)

 Respond  
Renegade   -  Jul 19, 2009

I could do... but I doubt I will.

:D

And ta.

 Respond  
Cheiron   -  Jul 18, 2009

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

 Respond  
iCub   -  May 27, 2009

Getting flooded?
BLOBEL - Australia flood mitigation for private & commercial assets
www.blobel.com
Jeez these ad's are getting good

 Respond  
Renegade   -  May 27, 2009

LOL yeah, that's why :P

Lol let me know when you want flooding >:)

 Respond  
iCub   -  May 27, 2009

So this is why you never used to respond to my kinky notices Q.Q
Looks good bro, untested until later times but out of 10, 5 being the highest I'll give it an A.

 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.