From 4c37c1c79bebc66b1af7f509598cd246a58881f9 Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Sat, 9 Oct 2004 07:12:21 +0000 Subject: [PATCH] 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 --- plugins/Filter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Filter.py b/plugins/Filter.py index 7ebf1afe7..6a81fc811 100644 --- a/plugins/Filter.py +++ b/plugins/Filter.py @@ -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()