From d81aa6d7fb70181129f7a6697f7f6fe3bc6a1a29 Mon Sep 17 00:00:00 2001 From: rainyday Date: Mon, 22 Nov 2010 11:14:12 +0800 Subject: [PATCH] Added ability to ignore commands from users by nick/host. --- plugins/sieve.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/sieve.py b/plugins/sieve.py index 916eec2..feecac4 100644 --- a/plugins/sieve.py +++ b/plugins/sieve.py @@ -34,5 +34,11 @@ def sieve_suite(bot, input, func, kind, args): if input.host not in admins and input.nick not in admins: return None + + if kind == "command": + ignored = bot.config.get('ignored', []); + if input.host in ignored or input.nick in ignored: + return None + return input