From a9d2cf8ff237e164e187c9e48745641e7db6deb8 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 23 Sep 2011 22:50:14 +0200 Subject: make colors work with 3-digits color numbers --- src/room.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/room.py') diff --git a/src/room.py b/src/room.py index 37b0de66..b97dd0b6 100644 --- a/src/room.py +++ b/src/room.py @@ -101,7 +101,7 @@ class Room(TextBuffer): self.log_message(txt, time, nickname) special_message = False if txt.startswith('/me '): - txt = "\x192* \x195" + nickname + ' ' + txt[4:] + txt = "\x192}* \x195}" + nickname + ' ' + txt[4:] special_message = True user = self.get_user_by_name(nickname) if nickname is not None else None if user: @@ -115,13 +115,13 @@ class Room(TextBuffer): self.set_color_state(get_theme().COLOR_TAB_NEW_MESSAGE) nick_color = nick_color or None if not nickname or time: - txt = '\x195%s' % (txt,) + txt = '\x195}%s' % (txt,) else: # TODO highlight = self.do_highlight(txt, time, nickname) if highlight: nick_color = highlight if special_message: - txt = '\x195%s' % (txt,) + txt = '\x195}%s' % (txt,) nickname = None time = time or datetime.now() message = Message(txt='%s\x19o'%(txt.replace('\t', ' '),), nick_color=nick_color, -- cgit v1.2.3