From 420c8f518d282a3be1dd76182d76c72ba9aeb645 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Mon, 10 May 2010 17:59:34 -0600 Subject: [PATCH] fix command disable bug --- plugins/sieve.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/sieve.py b/plugins/sieve.py index 369c335..95e29c6 100644 --- a/plugins/sieve.py +++ b/plugins/sieve.py @@ -5,10 +5,12 @@ from util import hook @hook.sieve def sieve_suite(bot, input, func, kind, args): - if input.command == 'PRIVMSG' - if input.nick.lower()[-3:] == 'bot' and args.get('ignorebots', True): + if input.command == 'PRIVMSG' and + input.nick.lower()[-3:] == 'bot' and args.get('ignorebots', True): return None - elif input.trigger in bot.config.get('disabled_commands', []): + + if kind == "command": + if input.trigger in bot.config.get('disabled_commands', []): return None fn = re.match(r'^plugins.(.+).py$', func._filename)