mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 12:43:09 +01:00
Fix crash on simulated echos (they don't have a prefix set).
This commit is contained in:
parent
83a8afde16
commit
f18eafc8d8
@ -1418,9 +1418,10 @@ class PluginMixin(BasePlugin, irclib.IrcCallback):
|
||||
noIgnore = self.noIgnore(irc, msg)
|
||||
else:
|
||||
noIgnore = self.noIgnore
|
||||
if noIgnore or \
|
||||
not ircdb.checkIgnored(msg.prefix, msg.channel) or \
|
||||
not ircutils.isUserHostmask(msg.prefix): # Some services impl.
|
||||
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.
|
||||
self.__parent.__call__(irc, msg)
|
||||
else:
|
||||
self.__parent.__call__(irc, msg)
|
||||
|
Loading…
Reference in New Issue
Block a user