From 2617ae709291b9fe52c8404ba443bd0cb4f1c5bc Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 3 Oct 2006 15:02:59 +0000 Subject: [PATCH] be sure to get groupchat_control in MSGERR handler. --- src/gajim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 1dd62b35f..f583dee01 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -629,6 +629,8 @@ 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.type_id != message_control.TYPE_GC: + gc_control = None if gc_control: if len(jids) > 1: # it's a pm nick = jids[1]