spammer: Allow exprs to be in the middle

This commit is contained in:
moneromooo 2016-08-05 16:49:29 +01:00
parent 82510c0f88
commit 14be174cb6

View file

@ -57,7 +57,7 @@ def OnMessage(event,*args,**kwargs):
log_info("Testing: " + line)
for expr in ["astounding!", "triple your btc!", "pm me to begin!", "hatt uu"]:
if re.match(expr+".*",line):
if re.match(.*+expr+".*",line):
link=kwargs['link']
Ban(link)
return