From e17b70e285406da6a3a564ff4b7c0da2fc208df2 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 24 Jan 2012 14:49:03 +0100 Subject: [PATCH] Display colors for /me messages in a better way. --- src/text_buffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")\