new patterns

This commit is contained in:
Romain Bignon 2010-10-14 19:01:50 +02:00
commit 709afc72f6

View file

@ -37,7 +37,7 @@ class AntiSpam(object):
resume = contact.get_resume()
# Check if there is an email address in the offer.
if re.match('[\w\d\.\-_]+@[\w\d\.]+ vous offre la possibilit', resume):
if re.match('^[\w\d\.\-_]+@[\w\d\.]+ vous offre la pos', resume):
return False
if contact.get_name() == 'Ekaterina':
return False
@ -61,6 +61,8 @@ class AntiSpam(object):
return False
if profile.description.find('bale chatt') >= 0:
return False
if profile.description.find('slt tt les mec chaud') >= 0:
return False
if profile.description.find('cc moi ') >= 0:
return False
if profile.description.find('une fille tres chaud') >= 0: