add tlen, fix gadu gadu to gg, and use dot because ggore@jabber.FOO can exist

This commit is contained in:
Nikos Kouremenos 2005-12-02 13:08:58 +00:00
parent 6cc869152c
commit 6e22a369ee

View file

@ -250,15 +250,16 @@ def get_transport_name_from_jid(jid, use_config_setting = True):
return None return None
def jid_is_transport(jid): def jid_is_transport(jid):
aim = jid.startswith('aim') aim = jid.startswith('aim.')
gg = jid.startswith('gadugadu') gg = jid.startswith('gg.') # gadugadu
irc = jid.startswith('irc') irc = jid.startswith('irc.')
icq = jid.startswith('icq') icq = jid.startswith('icq.')
msn = jid.startswith('msn') msn = jid.startswith('msn.')
sms = jid.startswith('sms') sms = jid.startswith('sms.')
yahoo = jid.startswith('yahoo') tlen = jid.startswith('tlen.')
yahoo = jid.startswith('yahoo.')
if aim or gg or irc or icq or msn or sms or yahoo: if aim or gg or irc or icq or msn or sms or yahoo or tlen:
is_transport = True is_transport = True
else: else:
is_transport = False is_transport = False