Page MenuHomeDevCentral

D32.id67.diff
No OneTemporary

D32.id67.diff

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

Mime Type
text/plain
Expires
Sat, Nov 23, 18:25 (18 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258068
Default Alt Text
D32.id67.diff (624 B)

Event Timeline