spammer: fix allowed list check

This commit is contained in:
moneromooo 2017-11-14 22:30:38 +00:00
parent e6888fde5d
commit d56c6dd61b
1 changed files with 1 additions and 1 deletions

View File

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