mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Merge pull request #1269 from kyrias/fix-disable
disable: Actually disable command by plugin if specified
This commit is contained in:
commit
f6419525ee
@ -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