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

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
if None == cmd:
logger('plugin', 'empty help request')
return {
'msg': args['reply_user'] + ': no command given'
}
logger('plugin', 'empty help request, sent all commands')
args['data'] += 'command' # this is a little hacky...
return command_command(args)
if not cmd in [p['name'] for p in plugins['command']]:
logger('plugin', 'no help found for %s' % cmd)