]> jfr.im git - irc/freenode/Sigyn.git/commitdiff
typo & force resolve when / in host
authorNicolas Coevoet <redacted>
Mon, 8 Feb 2021 17:06:47 +0000 (17:06 +0000)
committerNicolas Coevoet <redacted>
Mon, 8 Feb 2021 17:06:47 +0000 (17:06 +0000)
plugin.py

index 4ca70dd7e560b42308a3f58199a3d22b0847a135..a0e6793feb65a14795340d93483f6fe973e79b4f 100644 (file)
--- a/plugin.py
+++ b/plugin.py
@@ -1461,6 +1461,8 @@ class Sigyn(callbacks.Plugin,plugins.ChannelDBHandler):
            canKline = not self.registryValue('useWhoWas')
            if i.defcon or 'gateway/' in prefix:
                canKline = True
+           elif '/' in prefix:
+               canKline = False
         else:
             self.log.info('INVALID PREFIX %s : %s : %s' % (prefix,mask,reason))
         self.log.info('CANKLINE %s %s %s' % (prefix,mask,canKline))
@@ -2743,7 +2745,7 @@ class Sigyn(callbacks.Plugin,plugins.ChannelDBHandler):
                     uid = random.randint(0,1000000)
                     privateReason = '%s - ns id flood on %s' % (uid,target)
                     if i.defcon:
-                        privateReason = '!dsnbl ' + privateReason
+                        privateReason = '!dnsbl ' + privateReason
                     self.kline(irc,u,mask,self.registryValue('klineDuration'), privateReason)
                     self.logChannel(irc,"BAD: %s (%s)" % (u,privateReason))