mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +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):
|
||||
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()))
|
||||
|
Loading…
Reference in New Issue
Block a user