Show
Ignore:
Timestamp:
07/06/08 23:35:19 (5 months ago)
Author:
steve-e
Message:

Don't crash when we receive contacts that have a group tag assigned multiple times.

Remove some usage of has_key() in the contacts module. It is a bit slower (method overhead) and will be deprecated soon.
In roster_window. make a small if-clause more pythonic.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9889 r9892  
    14691469                                resource = '/'.join(jids[1:]) 
    14701470                        # get name 
    1471                         name = array[jid]['name'] 
    1472                         if not name: 
    1473                                 name = '' 
     1471                        name = array[jid]['name'] or '' 
    14741472                        show = 'offline' # show is offline by default 
    14751473                        status = '' # no status message by default