mIRC Home    About    Download    Register    News    Help

Print Thread
#61498 22/11/03 10:39 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
how to stop message flood by a user?

#61499 23/11/03 06:33 AM
Joined: Nov 2003
Posts: 6
I
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
I
Joined: Nov 2003
Posts: 6
<rude nonsense deleted by moderator. play nice or play somewhere else>

Last edited by ParaBrat; 23/11/03 06:33 PM.
#61500 23/11/03 09:47 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
/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.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61501 23/11/03 09:48 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Wow - that's a nice response....


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61502 23/11/03 11:07 AM
Joined: Jun 2003
Posts: 68
D
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 68
just kick the bitch and work with userlevels

#61503 23/11/03 11:38 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
hmm. that ain't gonna work. He just wants to stop the flood remember.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61504 23/11/03 01:35 PM
Joined: Nov 2003
Posts: 81
F
FMJ Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 81
but to recognize that this user is flooding me? can script do this automatically?

#61505 23/11/03 07:07 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61506 24/11/03 10:41 AM
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
Will also ingore someone if they send 1 line at 4 second intervals.

#61507 24/11/03 07:07 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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


-KingTomato
#61508 25/11/03 05:21 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
That's why I said "EXTREMELY basic" smile


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#61509 25/11/03 05:01 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
it's actually not much larger, just that it has a few comments >:P


-KingTomato

Link Copied to Clipboard