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