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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user