diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-01-24 14:49:03 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-01-26 10:05:36 +0100 |
commit | e17b70e285406da6a3a564ff4b7c0da2fc208df2 (patch) | |
tree | f4c02579aed8df6727bff92f0175b6a80b2ba78d | |
parent | 3d7d7425ee26d73aedb9dc1a51d87d25e37180d4 (diff) | |
download | poezio-e17b70e285406da6a3a564ff4b7c0da2fc208df2.tar.gz poezio-e17b70e285406da6a3a564ff4b7c0da2fc208df2.tar.bz2 poezio-e17b70e285406da6a3a564ff4b7c0da2fc208df2.tar.xz poezio-e17b70e285406da6a3a564ff4b7c0da2fc208df2.zip |
Display colors for /me messages in a better way.
-rw-r--r-- | src/text_buffer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text_buffer.py b/src/text_buffer.py index 3541b9c1..f396bd5b 100644 --- a/src/text_buffer.py +++ b/src/text_buffer.py @@ -44,7 +44,7 @@ class TextBuffer(object): else: color = None # TODO: display the bg color too. - txt = ("\x19%s}* \x195}" % (color or 5,))+ nickname + ' ' + txt[4:] + txt = ("\x195}* \x19%s}" % (color or 5,))+ nickname + ' \x195}' + txt[4:] nickname = None msg = Message(txt='%s\x19o'%(txt.replace('\t', ' '),), nick_color=nick_color, time=time, str_time=time.strftime("%Y-%m-%d %H:%M:%S")\ |