From 73f6e4d7588f344a773d81e7959908c791ccebe6 Mon Sep 17 00:00:00 2001
From: Nikos Kouremenos <kourem@gmail.com>
Date: Wed, 4 May 2005 15:30:08 +0000
Subject: [PATCH] fixing #221

---
 src/roster_window.py | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index a8a6d2e47c..29191c7372 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -177,18 +177,19 @@ class Roster_window:
 		'''check jid and return the appropriate state images dict'''
 		if not jid: # we don't have the jid of the contact (in gc)
 			state_images = self.jabber_state_images
-		if jid.find('@aim.') != -1:
-			state_images = self.transports_state_images['aim']
-		elif jid.find('@gadugadu.') != -1:
-			state_images = self.transports_state_images['gadugadu']
-		elif jid.find('@icq.') != -1:
-			state_images = self.transports_state_images['icq']
-		elif jid.find('@msn.') != -1:
-			state_images = self.transports_state_images['msn']
-		elif jid.find('@yahoo.') != -1:
-			state_images = self.transports_state_images['yahoo']
-		else: #jabber
-			state_images = self.jabber_state_images
+		else: # it's not GC so we have the jid
+			if jid.find('@aim.') != -1:
+				state_images = self.transports_state_images['aim']
+			elif jid.find('@gadugadu.') != -1:
+				state_images = self.transports_state_images['gadugadu']
+			elif jid.find('@icq.') != -1:
+				state_images = self.transports_state_images['icq']
+			elif jid.find('@msn.') != -1:
+				state_images = self.transports_state_images['msn']
+			elif jid.find('@yahoo.') != -1:
+				state_images = self.transports_state_images['yahoo']
+			else: #jabber
+				state_images = self.jabber_state_images
 
 		return state_images
 
-- 
GitLab