From 03f64fb23ce4bbfe8d0161209572e452c3ed9a51 Mon Sep 17 00:00:00 2001 From: js Date: Mon, 19 May 2008 17:58:16 +0000 Subject: [PATCH] Sorry, empty messages killed OTR. Fixed. --- src/session.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/session.py b/src/session.py index 2726ddd04..97ef3d568 100644 --- a/src/session.py +++ b/src/session.py @@ -153,12 +153,13 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession): if msgtxt == '': return else: - self.append_otr_tag = False - - # We're also here if we just don't support OTR. - # Thus, we should strip the tags from plaintext - # messages since they look ugly. if msgtxt: + self.append_otr_tag = False + + # We're also here if we just don't + # support OTR. Thus, we should strip + # the tags from plaintext messages + # since they look ugly. msgtxt = msgtxt.replace('\x20\x09\x20' \ '\x20\x09\x09\x09\x09\x20\x09' \ '\x20\x09\x20\x09\x20\x20', '')