mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
cleanup; add enabled/disabled to 'help' output
This commit is contained in:
@@ -222,9 +222,9 @@ def command_help(argv, **args):
|
|||||||
return {
|
return {
|
||||||
'msg': [
|
'msg': [
|
||||||
'%s: known commands: %s' % (
|
'%s: known commands: %s' % (
|
||||||
args['reply_user'], str(commands).strip('[]')
|
args['reply_user'], ', '.join(commands)
|
||||||
),
|
),
|
||||||
'known parsers: %s' % str(parsers).strip('[]')
|
'known parsers: %s' % ', '.join(parsers)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,7 +234,8 @@ def command_help(argv, **args):
|
|||||||
flag = True
|
flag = True
|
||||||
log.plugin('sent help for %s' % what)
|
log.plugin('sent help for %s' % what)
|
||||||
return {
|
return {
|
||||||
'msg': args['reply_user'] + ': help for %s %s: %s' % (
|
'msg': args['reply_user'] + ': help for %s %s %s: %s' % (
|
||||||
|
'enabled' if p.is_enabled else 'disabled',
|
||||||
'parser' if p.plugin_type == ptypes_PARSE else 'command',
|
'parser' if p.plugin_type == ptypes_PARSE else 'command',
|
||||||
what, p.plugin_desc
|
what, p.plugin_desc
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user