From 83a94fe75f6023b8ffd0c78189cc31123c7c3c40 Mon Sep 17 00:00:00 2001 From: rainyday Date: Mon, 22 Nov 2010 16:03:32 +0800 Subject: [PATCH] Moved disabled commands around. --- plugins/help.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/help.py b/plugins/help.py index 20ff42e..5ff9992 100644 --- a/plugins/help.py +++ b/plugins/help.py @@ -9,10 +9,11 @@ def help(inp, bot=None, pm=None): funcs = {} disabled = bot.config.get('disabled_plugins', []) + disabled_comm = bot.config.get('disabled_commands', []) 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 command not in bot.config.get('disabled_commands', []): + if command not in disabled_comm: if func.__doc__ is not None: if func in funcs: if len(funcs[func]) < len(command):