Show
Ignore:
Timestamp:
11/19/07 22:07:54 (12 months ago)
Author:
asterix
Message:

fix metacontact behaviour when 2 contacts in the group have same jid, same priority and same status. fixes #3565

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.3-bugfixes/src/common/contacts.py

    r8719 r9019  
    421421                if jid2 > jid1: 
    422422                        return -1 
     423                # If all is the same, compare accounts, they can't be the same 
     424                account1 = data1['account'] 
     425                account2 = data2['account'] 
     426                if account1 > account2: 
     427                        return 1 
     428                if account2 > account1: 
     429                        return -1 
    423430                return 0 
    424431