Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3765580
D32.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
624 B
Referenced Files
None
Subscribers
None
D32.diff
View Options
diff --git a/Daeghrefn/Channel.tcl b/Daeghrefn/Channel.tcl
--- a/Daeghrefn/Channel.tcl
+++ b/Daeghrefn/Channel.tcl
@@ -58,11 +58,20 @@
return 0
}
+proc isfloodquitmessage {reason} {
+ foreach floodreason [registry get protection.botnet.reasons] {
+ if [string match $reason $floodreason] {
+ return 1
+ }
+ }
+ return 0
+}
+
proc sign:excessflood {nick uhost handle channel reason} {
global botname
# We're interested by unknown users quitting with Excess Flood message.
- if {$reason != "Excess Flood" || [nick2hand $nick] != "*"} {
+ if {![isfloodquitmessage $reason] || $handle != "*"} {
return
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 13:05 (18 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258068
Default Alt Text
D32.diff (624 B)
Attached To
Mode
D32: Amend botnet migitation protection for #wikipedia-fr
Attached
Detach File
Event Timeline
Log In to Comment