mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
callbacks: don't crash when the prefix is from network services.
This commit is contained in:
parent
5b52c73fd4
commit
8f72c418e5
@ -1420,8 +1420,8 @@ class PluginMixin(BasePlugin, irclib.IrcCallback):
|
|||||||
noIgnore = self.noIgnore
|
noIgnore = self.noIgnore
|
||||||
if (noIgnore or
|
if (noIgnore or
|
||||||
not msg.prefix or # simulated echo message
|
not msg.prefix or # simulated echo message
|
||||||
not ircdb.checkIgnored(msg.prefix, msg.channel) or
|
not ircutils.isUserHostmask(msg.prefix) or # Some services impl.
|
||||||
not ircutils.isUserHostmask(msg.prefix)): # Some services impl.
|
not ircdb.checkIgnored(msg.prefix, msg.channel)):
|
||||||
self.__parent.__call__(irc, msg)
|
self.__parent.__call__(irc, msg)
|
||||||
else:
|
else:
|
||||||
self.__parent.__call__(irc, msg)
|
self.__parent.__call__(irc, msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user