summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Pasquet <mathieui@mathieui.net>2014-02-01 18:20:46 +0100
committerMathieu Pasquet <mathieui@mathieui.net>2014-02-01 18:20:46 +0100
commit0153106145dd337e4abc9035e401e9db33df28a1 (patch)
treedccf48747320bf9b9e1188ea776a8f5dd2d51f36
parent8fbf50fa8ee2d71a9793ebb73ec8609042495ae0 (diff)
downloadpoezio-0153106145dd337e4abc9035e401e9db33df28a1.tar.gz
poezio-0153106145dd337e4abc9035e401e9db33df28a1.tar.bz2
poezio-0153106145dd337e4abc9035e401e9db33df28a1.tar.xz
poezio-0153106145dd337e4abc9035e401e9db33df28a1.zip
Also do not send empty <replace/> with each message
-rw-r--r--src/tabs.py4
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'])