mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
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