Author: js Date: 2008-05-19 19:58:16 +0200 (Mon, 19 May 2008) New Revision: 9671
Modified: trunk/src/session.py Log: Sorry, empty messages killed OTR. Fixed.
Modified: trunk/src/session.py =================================================================== --- trunk/src/session.py 2008-05-19 17:54:51 UTC (rev 9670) +++ trunk/src/session.py 2008-05-19 17:58:16 UTC (rev 9671) @@ -153,12 +153,13 @@ if msgtxt == '': return else: - self.append_otr_tag = False + 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. - if msgtxt: + # 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', '')