mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
disable: Actually disable command by plugin if specified
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
f5db2338c5
commit
7c757cd52e
@ -548,7 +548,7 @@ class Owner(callbacks.Plugin):
|
|||||||
if plugin.isCommand(command):
|
if plugin.isCommand(command):
|
||||||
pluginCommand = '%s.%s' % (plugin.name(), command)
|
pluginCommand = '%s.%s' % (plugin.name(), command)
|
||||||
conf.supybot.commands.disabled().add(pluginCommand)
|
conf.supybot.commands.disabled().add(pluginCommand)
|
||||||
plugin._disabled.add(command)
|
plugin._disabled.add(command, plugin.name())
|
||||||
else:
|
else:
|
||||||
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()))
|
||||||
|
Loading…
Reference in New Issue
Block a user