From 87aafdf6804efa55402d8b4e3df39576c20610fa Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Tue, 3 Oct 2006 19:34:17 +0000 Subject: [PATCH] Faster --- src/gajim.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 5d29b05a1..1dce8463f 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -629,9 +629,7 @@ class Interface: jids = full_jid_with_resource.split('/', 1) jid = jids[0] gc_control = self.msg_win_mgr.get_control(jid, account) - if gc_control and gc_control.type_id != message_control.TYPE_GC: - gc_control = None - if gc_control: + if gc_control and gc_control.type_id == message_control.TYPE_GC: if len(jids) > 1: # it's a pm nick = jids[1] if not self.msg_win_mgr.get_control(full_jid_with_resource,