From f6b47f218078e0760654a56a32bc574b6d548a0d Mon Sep 17 00:00:00 2001 From: urlbot Date: Sun, 8 Feb 2015 22:37:27 +0100 Subject: [PATCH] sort() help output --- plugins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins.py b/plugins.py index 4f8a3bb..ac92f9d 100644 --- a/plugins.py +++ b/plugins.py @@ -127,9 +127,11 @@ def command_help(argv,**args): if None == what: logger('plugin', 'empty help request, sent all commands') + commands = args['cmd_list'] + commands.sort() return { 'msg': args['reply_user'] + ': known commands: ' + - str(args['cmd_list']).strip('[]') + str(commands).strip('[]') } if not what in [p.plugin_name for p in plugins[ptypes_COMMAND]]: