From 747674a5ecdd937af197a8ebca96aa3982b3acf6 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 31 Jan 2010 15:35:59 +0000 Subject: fix resize problem and default_nick --- src/window.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/window.py b/src/window.py index 2e51552a..a90031fa 100644 --- a/src/window.py +++ b/src/window.py @@ -120,10 +120,12 @@ class TextWin(object): win = self.wins[room.name].win users = room.users if len(line) == 2: - win.addstr('\n['+line[0].strftime("%H:%M:%S") + "] ") - win.attron(curses.color_pair(8)) - win.addstr(line[1]) - win.attroff(curses.color_pair(8)) + try: + win.addstr('\n['+line[0].strftime("%H:%M:%S") + "] ") + win.attron(curses.color_pair(8)) + win.addstr(line[1]) + win.attroff(curses.color_pair(8)) + except: # exception happens on resize, but it doesn't change anything... elif len(line) == 3: for user in users: if user.nick == line[1]: -- cgit v1.2.3