From 2a3c0e17230b887ccbf7c3865a916ebf49087284 Mon Sep 17 00:00:00 2001 From: Mike Leigh Date: Thu, 1 Aug 2013 13:21:11 +0100 Subject: [PATCH] Update help.py The new permissions have broken the help. This patch corrects the help behaviour. To replicate send .help and you should get the following error: Unhandled exception in thread started by Traceback (most recent call last): File "core/main.py", line 63, in run out = func(input.inp, **kw) File "plugins/help.py", line 16, in help input.nick in bot.config["admins"] or\ KeyError: 'admins' With this patch the help responds as expected. --- plugins/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/help.py b/plugins/help.py index cbba8c7..82788cd 100755 --- a/plugins/help.py +++ b/plugins/help.py @@ -13,8 +13,8 @@ def help(inp, say=None, notice=None, input=None, conn=None, bot=None): 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["admins"] or\ - input.mask in bot.config["admins"]: + 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: