diff options
author | Mathieu Pasquet <mathieui@mathieui.net> | 2014-02-01 18:20:46 +0100 |
---|---|---|
committer | Mathieu Pasquet <mathieui@mathieui.net> | 2014-02-01 18:20:46 +0100 |
commit | 0153106145dd337e4abc9035e401e9db33df28a1 (patch) | |
tree | dccf48747320bf9b9e1188ea776a8f5dd2d51f36 /src | |
parent | 8fbf50fa8ee2d71a9793ebb73ec8609042495ae0 (diff) | |
download | poezio-0153106145dd337e4abc9035e401e9db33df28a1.tar.gz poezio-0153106145dd337e4abc9035e401e9db33df28a1.tar.bz2 poezio-0153106145dd337e4abc9035e401e9db33df28a1.tar.xz poezio-0153106145dd337e4abc9035e401e9db33df28a1.zip |
Also do not send empty <replace/> with each message
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 4 |
1 files changed, 4 insertions, 0 deletions
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']) |