remove chekcing for dot
This commit is contained in:
parent
32fbe2729c
commit
cc76b95f9d
|
@ -230,8 +230,6 @@ def get_transport_name_from_jid(jid, use_config_setting = True):
|
|||
host = jid.split('@')[-1]
|
||||
if host.startswith('aim'):
|
||||
return 'aim'
|
||||
elif host.startswith('gadugadu'):
|
||||
return 'gadugadu'
|
||||
elif host.startswith('gg'):
|
||||
return 'gadugadu'
|
||||
elif host.startswith('irc'):
|
||||
|
@ -253,14 +251,14 @@ def get_transport_name_from_jid(jid, use_config_setting = True):
|
|||
return None
|
||||
|
||||
def jid_is_transport(jid):
|
||||
aim = jid.startswith('aim.')
|
||||
gg = jid.startswith('gg.') # gadugadu
|
||||
irc = jid.startswith('irc.')
|
||||
icq = jid.startswith('icq.')
|
||||
msn = jid.startswith('msn.')
|
||||
sms = jid.startswith('sms.')
|
||||
tlen = jid.startswith('tlen.')
|
||||
yahoo = jid.startswith('yahoo.')
|
||||
aim = jid.startswith('aim')
|
||||
gg = jid.startswith('gg') # gadugadu
|
||||
irc = jid.startswith('irc')
|
||||
icq = jid.startswith('icq')
|
||||
msn = jid.startswith('msn')
|
||||
sms = jid.startswith('sms')
|
||||
tlen = jid.startswith('tlen')
|
||||
yahoo = jid.startswith('yahoo')
|
||||
|
||||
if aim or gg or irc or icq or msn or sms or yahoo or tlen:
|
||||
is_transport = True
|
||||
|
|
Loading…
Reference in New Issue