Merge pull request #1269 from kyrias/fix-disable

disable: Actually disable command by plugin if specified
This commit is contained in:
Valentin Lorentz 2016-11-03 18:53:19 +01:00 committed by GitHub
commit f6419525ee

View File

@ -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()))