RelayNext: exempt the bot from ignore checking

This commit is contained in:
James Lu 2016-03-27 10:20:15 -07:00
parent a432ab7d5b
commit a05567620b

View File

@ -221,7 +221,7 @@ class RelayNext(callbacks.Plugin):
# Check for ignored events first
ignoredevents = map(str.upper, self.registryValue('events.userIgnored', channel))
if msg.command in ignoredevents and ircdb.checkIgnored(msg.prefix, channel):
if msg.command in ignoredevents and msg.nick != irc.nick and ircdb.checkIgnored(msg.prefix, channel):
self.log.debug("RelayNext (%s): ignoring message from %s",
irc.network, msg.prefix)
return