update antispam
This commit is contained in:
parent
8dc3231d88
commit
6c22505f71
1 changed files with 6 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ class AntiSpam(object):
|
||||||
# The name of profile is in form #123456789
|
# The name of profile is in form #123456789
|
||||||
if re.match('^#\d+$', profile.get_name()):
|
if re.match('^#\d+$', profile.get_name()):
|
||||||
return False
|
return False
|
||||||
|
if profile.get_name().strip().lower() == 'ajoute moi':
|
||||||
|
return False
|
||||||
# This pattern in bad french is in several spambots description.
|
# This pattern in bad french is in several spambots description.
|
||||||
if re.match('.*chercher? un m.c tres ch..d.*', profile.description):
|
if re.match('.*chercher? un m.c tres ch..d.*', profile.description):
|
||||||
return False
|
return False
|
||||||
|
|
@ -69,6 +71,8 @@ class AntiSpam(object):
|
||||||
return False
|
return False
|
||||||
if profile.description.find('une fille tres chaud') >= 0:
|
if profile.description.find('une fille tres chaud') >= 0:
|
||||||
return False
|
return False
|
||||||
|
if profile.description.find('sa va bb') == 0:
|
||||||
|
return False
|
||||||
if profile.description.startswith('msn\n\n'):
|
if profile.description.startswith('msn\n\n'):
|
||||||
return False
|
return False
|
||||||
if profile.description.endswith('Moi la bonne jeune fille gaie'):
|
if profile.description.endswith('Moi la bonne jeune fille gaie'):
|
||||||
|
|
@ -82,6 +86,8 @@ class AntiSpam(object):
|
||||||
# Strange thing...
|
# Strange thing...
|
||||||
if re.match('.*je suis tres cho\w+d.*', profile.description):
|
if re.match('.*je suis tres cho\w+d.*', profile.description):
|
||||||
return False
|
return False
|
||||||
|
if re.match('.*je suis tr.s chaud', profile.description):
|
||||||
|
return False
|
||||||
# Strange thing...
|
# Strange thing...
|
||||||
if re.match('.*ma croissance de \d+ sm.*', profile.description):
|
if re.match('.*ma croissance de \d+ sm.*', profile.description):
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue