mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-02 16:22:33 +01:00
Fix0red disable.
This commit is contained in:
parent
9021c5e150
commit
4facd7e5ba
@ -712,9 +712,10 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
irc.error('%s is not a command in the %s plugin.' %
|
irc.error('%s is not a command in the %s plugin.' %
|
||||||
(command, plugin.name()))
|
(command, plugin.name()))
|
||||||
return
|
return
|
||||||
|
self._disabled.add(command, plugin.name())
|
||||||
else:
|
else:
|
||||||
conf.supybot.commands.disabled().add(command)
|
conf.supybot.commands.disabled().add(command)
|
||||||
self._disabled.add(command, plugin)
|
self._disabled.add(command)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
disable = wrap(disable, [optional('plugin'), 'commandName'])
|
disable = wrap(disable, [optional('plugin'), 'commandName'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user