From 0153106145dd337e4abc9035e401e9db33df28a1 Mon Sep 17 00:00:00 2001 From: Mathieu Pasquet Date: Sat, 1 Feb 2014 18:20:46 +0100 Subject: Also do not send empty with each message --- src/tabs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tabs.py b/src/tabs.py index 45c7002c..c44b5bf0 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1974,6 +1974,8 @@ class PrivateTab(ChatTab): replaced = True except: log.error('Unable to correct a message', exc_info=True) + else: + del msg['replace'] if msg['body'].find('\x19') != -1: msg.enable('html') @@ -3195,6 +3197,8 @@ class ConversationTab(ChatTab): replaced = True except: log.error('Unable to correct a message', exc_info=True) + else: + del msg['replace'] if msg['body'].find('\x19') != -1: msg.enable('html') msg['html']['body'] = xhtml.poezio_colors_to_html(msg['body']) -- cgit v1.2.3