Page MenuHomeDevCentral

D32.diff
No OneTemporary

D32.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
Wed, Nov 6, 19:44 (20 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232213
Default Alt Text
D32.diff (624 B)

Event Timeline