allow override of sieve's ignorebots in config
This commit is contained in:
parent
fa904d2ded
commit
46ed4e85fb
|
@ -6,6 +6,7 @@ from util import hook
|
||||||
@hook.sieve
|
@hook.sieve
|
||||||
def sieve_suite(bot, input, func, kind, args):
|
def sieve_suite(bot, input, func, kind, args):
|
||||||
if input.command == 'PRIVMSG' and \
|
if input.command == 'PRIVMSG' and \
|
||||||
|
bot.config.get('ignorebots', True) and \
|
||||||
input.nick.lower()[-3:] == 'bot' and args.get('ignorebots', True):
|
input.nick.lower()[-3:] == 'bot' and args.get('ignorebots', True):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue