Display colors for /me messages in a better way.

This commit is contained in:
Florent Le Coz 2012-01-24 14:49:03 +01:00
parent 3d7d7425ee
commit e17b70e285

View file

@ -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")\