Merge pull request #124 from TeamPeggle/feature/config-disable-ignorebots

allow override of sieve's ignorebots in config
This commit is contained in:
Ryan Hitchman 2014-11-26 16:19:17 -06:00
commit bffea3c15a
1 changed files with 1 additions and 0 deletions

View File

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