spammer: Allow exprs to be in the middle
This commit is contained in:
parent
82510c0f88
commit
14be174cb6
|
@ -57,7 +57,7 @@ def OnMessage(event,*args,**kwargs):
|
||||||
|
|
||||||
log_info("Testing: " + line)
|
log_info("Testing: " + line)
|
||||||
for expr in ["astounding!", "triple your btc!", "pm me to begin!", "hatt uu"]:
|
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']
|
link=kwargs['link']
|
||||||
Ban(link)
|
Ban(link)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue