From 953a9c108666b50d88f394674303640f1663a226 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 21 Nov 2006 20:55:56 +0000
Subject: [PATCH] prevent a TB. fixes #2687

---
 src/gajim.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gajim.py b/src/gajim.py
index 864ebac1f8..3395f27aab 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -885,8 +885,11 @@ class Interface:
 		show = array[1]
 		status = array[2]
 
-		# Get the window and control for the updated status, this may be a PrivateChatControl
+		# Get the window and control for the updated status, this may be a
+		# PrivateChatControl
 		control = self.msg_win_mgr.get_control(room_jid, account)
+		if control.type_id != message_control.TYPE_GC:
+			return
 		if control:
 			control.chg_contact_status(nick, show, status, array[4], array[5],
 				array[6], array[7], array[8], array[9], array[10])
-- 
GitLab