1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

sort() help output

This commit is contained in:
urlbot
2015-02-08 22:37:27 +01:00
parent 73ec073c54
commit f6b47f2180

View File

@@ -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]]: