Added ability to ignore commands from users by nick/host.

This commit is contained in:
rainyday 2010-11-22 11:14:12 +08:00 committed by rmmh
parent a24da5f5d1
commit d81aa6d7fb
1 changed files with 6 additions and 0 deletions

View File

@ -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