allow override of sieve's ignorebots in config

This commit is contained in:
James Ward 2014-11-15 17:46:02 -05:00 committed by James
parent fa904d2ded
commit 46ed4e85fb
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from util import hook
@hook.sieve
def sieve_suite(bot, input, func, kind, args):
if input.command == 'PRIVMSG' and \
bot.config.get('ignorebots', True) and \
input.nick.lower()[-3:] == 'bot' and args.get('ignorebots', True):
return None