From d56c6dd61b7f10c55dd57edf67a61ae0660978be Mon Sep 17 00:00:00 2001 From: moneromooo Date: Tue, 14 Nov 2017 22:30:38 +0000 Subject: [PATCH] spammer: fix allowed list check --- tipbot/modules/spammer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot/modules/spammer.py b/tipbot/modules/spammer.py index 237f364..7a8122d 100644 --- a/tipbot/modules/spammer.py +++ b/tipbot/modules/spammer.py @@ -71,7 +71,7 @@ def OnMessage(event,*args,**kwargs): link=kwargs['link'] if IsAdmin(link): return - if link.nick in config.allowed: + if config.spammer_allowed and link.user.nick in config.spammer_allowed: return line=re.sub(r'\x03[0-9]?[0-9]?','',line)