fix wrong var name. fixes #2750

This commit is contained in:
Yann Leboulanger 2007-03-31 12:43:07 +00:00
parent bf05bec320
commit 758f7949ca
1 changed files with 5 additions and 5 deletions

View File

@ -463,21 +463,21 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
self.available_types = [] self.available_types = []
for acct in accounts: for acct in accounts:
for j in gajim.contacts.get_jid_list(acct): for j in gajim.contacts.get_jid_list(acct):
contact = gajim.contacts.get_first_contact_from_jid(acct, j)
if gajim.jid_is_transport(j): if gajim.jid_is_transport(j):
type_ = gajim.get_transport_name_from_jid(j) type_ = gajim.get_transport_name_from_jid(j, False)
if self.agents.has_key(type_): if self.agents.has_key(type_):
self.agents[type_].append(j) self.agents[type_].append(j)
else: else:
self.agents[type_] = [j] self.agents[type_] = [j]
# Now add the one to which we can register # Now add the one to which we can register
for acct in accounts: for acct in accounts:
for type_ in gajim.connections[account].available_transports: for type_ in gajim.connections[acct].available_transports:
if type_ in self.agents: if type_ in self.agents:
continue continue
self.agents[type_] = [] self.agents[type_] = []
for jid_ in gajim.connections[account].available_transports[type_]: for jid_ in gajim.connections[acct].available_transports[type_]:
self.agents[type_].append(jid_) if not jid_ in self.agents[type_]:
self.agents[type_].append(jid_)
self.available_types.append(type_) self.available_types.append(type_)
liststore = gtk.ListStore(str) liststore = gtk.ListStore(str)
self.group_comboboxentry.set_model(liststore) self.group_comboboxentry.set_model(liststore)