|
|
Joined: Nov 2003
Posts: 81
Babel fish
|
OP
Babel fish
Joined: Nov 2003
Posts: 81 |
how to stop message flood by a user?
|
|
|
|
Joined: Nov 2003
Posts: 6
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
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.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Jun 2003
Posts: 68
Babel fish
|
Babel fish
Joined: Jun 2003
Posts: 68 |
just kick the bitch and work with userlevels
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Nov 2003
Posts: 81
Babel fish
|
OP
Babel fish
Joined: Nov 2003
Posts: 81 |
but to recognize that this user is flooding me? can script do this automatically?
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
A giood flood protection addon will. This one is EXTREMELY basic:
on *:TEXT:*:?: {
inc -u5 $+(%,text,$nick)
if ($eval($+(%,text,$nick),2) > 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
|
|
|
|
Joined: Dec 2002
Posts: 191
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 191 |
Will also ingore someone if they send 1 line at 4 second intervals.
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
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 ] ] >= %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
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
That's why I said "EXTREMELY basic"
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
it's actually not much larger, just that it has a few comments >:P
-KingTomato
|
|
|
|
|
|