mIRC Homepage
Posted By: FMJ stop message flood - 22/11/03 10:39 PM
how to stop message flood by a user?
Posted By: ITAPEVI Re: stop message flood - 23/11/03 06:33 AM
<rude nonsense deleted by moderator. play nice or play somewhere else>
Posted By: LocutusofBorg Re: stop message flood - 23/11/03 09:47 AM
/ignore nick

that usually helps. On some networks you can also set mode +R on yourself, so only user who are identified for their registered nick can msg you.
Posted By: LocutusofBorg Re: stop message flood - 23/11/03 09:48 AM
Wow - that's a nice response....
Posted By: Dr4g0n Re: stop message flood - 23/11/03 11:07 AM
just kick the bitch and work with userlevels
Posted By: LocutusofBorg Re: stop message flood - 23/11/03 11:38 AM
hmm. that ain't gonna work. He just wants to stop the flood remember.
Posted By: FMJ Re: stop message flood - 23/11/03 01:35 PM
but to recognize that this user is flooding me? can script do this automatically?
Posted By: LocutusofBorg Re: stop message flood - 23/11/03 07:07 PM
A giood flood protection addon will. This one is EXTREMELY basic:

Code:
on *:TEXT:*:?: {
  inc -u5 $+(%,text,$nick)
  if ($eval($+(%,text,$nick),2) &gt; 5) ignore -u600 $nick
}


This will simply ignore a user for 10 minutes who has sent more than 5 lines of text to you in 5 seconds time.
Posted By: Nobodi Re: stop message flood - 24/11/03 10:41 AM
Will also ingore someone if they send 1 line at 4 second intervals.
Posted By: KingTomato Re: stop message flood - 24/11/03 07:07 PM
Code:
on *:TEXT:*:[color:red]*[/color]: {
  ; -------------------------------------------------------
  ; Settings
  ;
  var %lines = 4    | ; line count
  var %delay = 5    | ; lines in __ seconds
  var %ignore = 300 | ; seconds to ignore person
  ;
  ; -------------------------------------------------------
  ; Spam Protection
  ; --
  ; Saying several lines of (different) text, in a short
  ; duration of time.
  ;
  /inc -u $+ %delay %msg. [ $+ [ $chan ] $+ [ $nick ] ]
  if (%msg. [ $+ [ $chan ] $+ [ $nick ] ] &gt;= %lines) {
    .ignore -u $+ %delay $address($nick, 11)
    return
  }
  ;
  ; -------------------------------------------------------
  ; Flood protection
  ; --
  ; Repeating the same message in a short duration of time
  ;
  if (%lm. [ $+ [ $chan ] $+ [ $nick ] ] != $1-) {
    /set -u $+ %delay %lm. [ $+ [ $chan ] $+ [ $nick ] ]
  }
  else {
    /inc -u $+ %delay %fld. [ $+ [ $chan ] $+ [ $nick ] ]
    if (%fld. [ $+ [ $chan ] $+ [ $nick ] ]) {
      .ignore -u $+ %delay $address($nick, 11)
      return      
    }
  }
}

this is a little more complicated than yours, but offers a little better protection. instead of just regular message spam, this will catch flooding also. It also will work in the channel, as well as queries, but is easily changed. Depending where you want the protection, change the red * at the top of the code to:

? - Queries
# - Channel
* - Both
Posted By: LocutusofBorg Re: stop message flood - 25/11/03 05:21 AM
That's why I said "EXTREMELY basic" smile
Posted By: KingTomato Re: stop message flood - 25/11/03 05:01 PM
it's actually not much larger, just that it has a few comments >:P
© mIRC Discussion Forums