do not count priority and if contact is a transport when computing metacontact score when contact is offline. fixes #2691

This commit is contained in:
Yann Leboulanger 2006-11-21 22:27:35 +00:00
parent 4236845608
commit e4a6d895ee
1 changed files with 2 additions and 1 deletions

View File

@ -392,7 +392,8 @@ class Contacts:
contact = self.get_contact_with_highest_priority(account, jid)
score = (max_order - order)*10000
if common.gajim.get_transport_name_from_jid(jid) is None:
if common.gajim.get_transport_name_from_jid(jid) is None and \
contact.show not in ('error', 'offline'):
score += 10
if contact.priority > 0:
score += contact.priority * 10