hook command_command() to command_help() with empty arg

This commit is contained in:
urlbot
2014-12-02 17:31:06 +01:00
parent 836ef1aa1b
commit 697ce97c2b

View File

@@ -173,10 +173,9 @@ def command_help(args):
return None return None
if None == cmd: if None == cmd:
logger('plugin', 'empty help request') logger('plugin', 'empty help request, sent all commands')
return { args['data'] += 'command' # this is a little hacky...
'msg': args['reply_user'] + ': no command given' return command_command(args)
}
if not cmd in [p['name'] for p in plugins['command']]: if not cmd in [p['name'] for p in plugins['command']]:
logger('plugin', 'no help found for %s' % cmd) logger('plugin', 'no help found for %s' % cmd)