contact.show can be not in roster. Fixes #1792

This commit is contained in:
Yann Leboulanger 2006-04-01 10:23:40 +00:00
parent bd4a18b861
commit 117acf702c
1 changed files with 2 additions and 2 deletions

View File

@ -316,8 +316,8 @@ class Contacts:
score = priority*10000
if not common.gajim.jid_is_transport(jid):
score += contact.priority*10
score += ['error', 'offline', 'invisible', 'dnd', 'xa', 'away', 'chat',
'online'].index(contact.show)
score += ['not in roster', 'error', 'offline', 'invisible', 'dnd', 'xa',
'away', 'chat', 'online'].index(contact.show)
return score
def get_metacontacts_big_brother(self, family):