ipaddr is not available anymore
This commit is contained in:
parent
d8a3a4360e
commit
793810fdf3
2 changed files with 8 additions and 1 deletions
|
|
@ -47,6 +47,9 @@ class AntiSpam(object):
|
|||
return False
|
||||
if profile['about2'].endswith('mmmmmmmmmmmmmmmm'):
|
||||
return False
|
||||
return True
|
||||
|
||||
# ipaddr is not available anymore.
|
||||
for ipaddr in (profile['last_ip'], profile['first_ip']):
|
||||
if ipaddr.startswith('41.202.'):
|
||||
return False
|
||||
|
|
@ -77,6 +80,9 @@ class AntiSpam(object):
|
|||
if not self.check_profile(contact.aum_profile):
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
# ipaddr is not available anymore.
|
||||
first_ip = contact.profile['info']['IPaddr'].value.split(' ')[0]
|
||||
last_ip = contact.profile['info']['IPaddr'].value.rstrip(')')
|
||||
for ipaddr in (first_ip, last_ip):
|
||||
|
|
|
|||
|
|
@ -135,7 +135,8 @@ class Contact(_Contact):
|
|||
TABLE = OrderedDict((
|
||||
('_info', OrderedDict((
|
||||
('title', FieldStr('title')),
|
||||
('IPaddr', FieldIP('last_ip', 'first_ip')),
|
||||
# ipaddr is not available anymore.
|
||||
#('IPaddr', FieldIP('last_ip', 'first_ip')),
|
||||
('admin', FieldBool('admin')),
|
||||
('ban', FieldBool('isBan')),
|
||||
('first', FieldStr('first_cnx')),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue