better detection of transport jid in add contact dialog. fixes #2750

This commit is contained in:
Yann Leboulanger 2006-12-12 14:16:29 +00:00
parent 224e1dfe8e
commit d3970e70ea
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
for acct in accounts:
for j in gajim.contacts.get_jid_list(acct):
contact = gajim.contacts.get_first_contact_from_jid(acct, j)
if _('Transports') in contact.groups:
if gajim.jid_is_transport(j):
type_ = gajim.get_transport_name_from_jid(j)
if self.agents.has_key(type_):
self.agents[type_].append(j)