Show
Ignore:
Timestamp:
08/30/07 22:52:39 (15 months ago)
Author:
roidelapluie
Message:

0.11.2: fix wrong var name. fixes #2750

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/dialogs.py

    r8616 r8638  
    471471                for acct in accounts: 
    472472                        for j in gajim.contacts.get_jid_list(acct): 
    473                                 contact = gajim.contacts.get_first_contact_from_jid(acct, j) 
    474473                                if gajim.jid_is_transport(j): 
    475                                         type_ = gajim.get_transport_name_from_jid(j) 
     474                                        type_ = gajim.get_transport_name_from_jid(j, False) 
    476475                                        if self.agents.has_key(type_): 
    477476                                                self.agents[type_].append(j) 
     
    480479                # Now add the one to which we can register 
    481480                for acct in accounts: 
    482                         for type_ in gajim.connections[account].available_transports: 
     481                        for type_ in gajim.connections[acct].available_transports: 
    483482                                if type_ in self.agents: 
    484483                                        continue 
    485484                                self.agents[type_] = [] 
    486                                 for jid_ in gajim.connections[account].available_transports[type_]: 
    487                                         self.agents[type_].append(jid_) 
     485                                for jid_ in gajim.connections[acct].available_transports[type_]: 
     486                                        if not jid_ in self.agents[type_]: 
     487                                                self.agents[type_].append(jid_) 
    488488                                self.available_types.append(type_) 
    489489                liststore = gtk.ListStore(str)