mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
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:
parent
b2fbbef197
commit
4c37c1c79b
@ -106,7 +106,8 @@ class Filter(callbacks.Privmsg):
|
|||||||
message isn't sent in the channel itself.
|
message isn't sent in the channel itself.
|
||||||
"""
|
"""
|
||||||
if command:
|
if command:
|
||||||
if command in self._filterCommands:
|
if command in self._filterCommands and \
|
||||||
|
command not in conf.supybot.commands.disabled():
|
||||||
method = getattr(self, command)
|
method = getattr(self, command)
|
||||||
self.outFilters.setdefault(channel, []).append(method)
|
self.outFilters.setdefault(channel, []).append(method)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
Loading…
Reference in New Issue
Block a user