Merge pull request #124 from TeamPeggle/feature/config-disable-ignorebots
allow override of sieve's ignorebots in config
This commit is contained in:
commit
bffea3c15a
|
@ -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