From 41ce0c9118fef9cd785588d03c0c2c2f044bf4d4 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 12 Jun 2010 22:47:04 +0000 Subject: Put the list of rooms to the left of the RoomInfo bar, and the name to the right. --- src/window.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/window.py b/src/window.py index e981c04e..447e5271 100644 --- a/src/window.py +++ b/src/window.py @@ -129,7 +129,7 @@ class RoomInfo(Win): def compare_room(a, b): return a.nb - b.nb self.win.erase() - self.win.addnstr(0, 0, current.name+" [", self.width + self.win.addnstr(0, 0, "[", self.width ,curses.color_pair(1)) sorted_rooms = sorted(rooms, compare_room) for room in sorted_rooms: @@ -144,7 +144,7 @@ class RoomInfo(Win): break (y, x) = self.win.getyx() try: - self.win.addstr(y, x-1, ']'+(' '*((self.width)-x)), curses.color_pair(1)) + self.win.addstr(y, x-1, '] '+ current.name+ (' '*((self.width)-x)), curses.color_pair(1)) except: pass self.win.refresh() @@ -184,7 +184,6 @@ class TextWin(Win): for message in messages: txt = message.txt offset = 11 # length of the time - debug(str(message.nickname) + ' : '+message.txt + '\n') if message.nickname and len(message.nickname) >= 30: nick = message.nickname[:30]+u'…' else: @@ -202,6 +201,8 @@ class TextWin(Win): if limit == 0: break color = message.user.color if message.user else None + if not first: + nick = None l = Line(nick, color, message.time, txt[:limit], message.color, -- cgit v1.2.3