Closes #1043440: "Disabled filter commands can still be outfilters."

Just gotta check conf.supybot.commands.disabled() and if it's in there, pretend
it doesn't exist
This commit is contained in:
Daniel DiPaolo 2004-10-09 07:12:21 +00:00
parent b2fbbef197
commit 4c37c1c79b

View File

@ -106,7 +106,8 @@ class Filter(callbacks.Privmsg):
message isn't sent in the channel itself.
"""
if command:
if command in self._filterCommands:
if command in self._filterCommands and \
command not in conf.supybot.commands.disabled():
method = getattr(self, command)
self.outFilters.setdefault(channel, []).append(method)
irc.replySuccess()