fix plugin disable
This commit is contained in:
@@ -628,8 +628,11 @@ def command_cake(argv, **args):
|
|||||||
# TODO: send a hint if someone types plugin as command
|
# TODO: send a hint if someone types plugin as command
|
||||||
@pluginfunction('plugin', "'disable' or 'enable' plugins", ptypes_COMMAND)
|
@pluginfunction('plugin', "'disable' or 'enable' plugins", ptypes_COMMAND)
|
||||||
def command_plugin_activation(argv, **args):
|
def command_plugin_activation(argv, **args):
|
||||||
command = argv[0]
|
if argv[0] != 'plugin' or len(argv) == 1:
|
||||||
plugin = argv[1] if len(argv) > 1 else None
|
return
|
||||||
|
|
||||||
|
command = argv[1]
|
||||||
|
plugin = argv[2] if len(argv) > 2 else None
|
||||||
|
|
||||||
if command not in ('enable', 'disable'):
|
if command not in ('enable', 'disable'):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user