disable: Actually disable command by plugin if specified

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
Johannes Löthberg 2016-11-03 14:28:41 +01:00
parent f5db2338c5
commit 7c757cd52e

View File

@ -548,7 +548,7 @@ class Owner(callbacks.Plugin):
if plugin.isCommand(command):
pluginCommand = '%s.%s' % (plugin.name(), command)
conf.supybot.commands.disabled().add(pluginCommand)
plugin._disabled.add(command)
plugin._disabled.add(command, plugin.name())
else:
irc.error('%s is not a command in the %s plugin.' %
(command, plugin.name()))