fix traceback. Fixes #7340

This commit is contained in:
Yann Leboulanger 2013-05-02 21:46:10 +02:00
parent dc64ac8000
commit b756738457
1 changed files with 2 additions and 1 deletions

View File

@ -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 \