]> jfr.im git - irc/freenode/Sigyn.git/commitdiff
Ignore flood snotes on freenode-connect
authorDax <redacted>
Tue, 7 Aug 2018 00:42:08 +0000 (17:42 -0700)
committerNicolas Coevoet <redacted>
Tue, 7 Aug 2018 07:57:53 +0000 (07:57 +0000)
Sigyn keeps klining users for "flooding" freenode-connect when there's lots of new connections (and thus lots of CTCP replies going to freenode-connect). Ignore flood snotes about freenode-connect to prevent this.

plugin.py

index 7230e355743a7733b9870a05454e5c16b9d1782a..c768b37f1d300e43efbdbbef449b8c3044417eff 100644 (file)
--- a/plugin.py
+++ b/plugin.py
@@ -2572,7 +2572,7 @@ class Sigyn(callbacks.Plugin,plugins.ChannelDBHandler):
                     if i.defcon or len(queue) > 1:
                         for m in queue:
                             for q in m.split(','):
-                                if not ircdb.checkCapability(q, 'protected'):
+                                if not (ircdb.checkCapability(q, 'protected') or target == 'freenode-connect'):
                                     mask = self.prefixToMask(irc,q)
                                     uid = random.randint(0,1000000)
                                     self.kline(irc,q,mask,self.registryValue('klineDuration'),'%s - snote flood on %s' % (uid,target))