From 205294dea7db42e4d04ab22f9e8e610713dd6698 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 2 Aug 2013 00:26:31 +1200 Subject: [PATCH] Actually, totally remove the admin checks from help.py until I can figure out how to make this work well with the new permissions system --- plugins/help.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/plugins/help.py b/plugins/help.py index 82788cd..82dea00 100755 --- a/plugins/help.py +++ b/plugins/help.py @@ -12,16 +12,13 @@ def help(inp, say=None, notice=None, input=None, conn=None, bot=None): for command, (func, args) in bot.commands.iteritems(): fn = re.match(r'^plugins.(.+).py$', func._filename) if fn.group(1).lower() not in disabled: - if not args.get('adminonly', False) or\ - input.nick in bot.config["permission_users"]["admins"] or\ - input.mask in bot.config["permission_users"]["admins"]: - if command not in disabled_comm: - if func.__doc__ is not None: - if func in funcs: - if len(funcs[func]) < len(command): - funcs[func] = command - else: + if command not in disabled_comm: + if func.__doc__ is not None: + if func in funcs: + if len(funcs[func]) < len(command): funcs[func] = command + else: + funcs[func] = command commands = dict((value, key) for key, value in funcs.iteritems())