From 8f72c418e569b129ffc0619c3b755823f88a57ce Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 25 Jul 2020 15:29:16 +0200 Subject: [PATCH] callbacks: don't crash when the prefix is from network services. --- src/callbacks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index d6c95709c..e309a2531 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1420,8 +1420,8 @@ class PluginMixin(BasePlugin, irclib.IrcCallback): noIgnore = self.noIgnore if (noIgnore or not msg.prefix or # simulated echo message - not ircdb.checkIgnored(msg.prefix, msg.channel) or - not ircutils.isUserHostmask(msg.prefix)): # Some services impl. + not ircutils.isUserHostmask(msg.prefix) or # Some services impl. + not ircdb.checkIgnored(msg.prefix, msg.channel)): self.__parent.__call__(irc, msg) else: self.__parent.__call__(irc, msg)