From b75673845749aeb79a606928b7483f80722c61ff Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 2 May 2013 21:46:10 +0200
Subject: [PATCH] fix traceback. Fixes #7340

---
 src/chat_control.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/chat_control.py b/src/chat_control.py
index e5267bd262..b7a919f315 100644
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -988,7 +988,8 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
             return
         if kind in ('incoming', 'outgoing'):
             self.last_received_txt[name] = text
-            self.last_received_id[name] = correct_id[0]
+            if correct_id:
+                self.last_received_id[name] = correct_id[0]
         if kind == 'incoming':
             if not self.type_id == message_control.TYPE_GC or \
             gajim.config.get('notify_on_all_muc_messages') or \
-- 
GitLab