From 117acf702c2d4e0da29c9bd76dabaac52ef85fe5 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sat, 1 Apr 2006 10:23:40 +0000
Subject: [PATCH] contact.show can be not in roster. Fixes #1792

---
 src/common/contacts.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/contacts.py b/src/common/contacts.py
index b98a8906d8..ae2f367c99 100644
--- a/src/common/contacts.py
+++ b/src/common/contacts.py
@@ -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):
-- 
GitLab