RelayNext: be channel-specific when looking at events to ignore

This commit is contained in:
James Lu 2016-03-25 15:20:01 -07:00
parent 5ba2d46273
commit 8d30c20a1e

View File

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