Added ability to ignore commands from users by nick/host.
This commit is contained in:
parent
a24da5f5d1
commit
d81aa6d7fb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue