diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 15:35:59 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 15:35:59 +0000 |
commit | 747674a5ecdd937af197a8ebca96aa3982b3acf6 (patch) | |
tree | f3dd9e2fdfd89dc058a5949764278b7d65cf7c46 | |
parent | 01592050cb6bc2a65503bfe8541b4eca2b9e512a (diff) | |
download | poezio-747674a5ecdd937af197a8ebca96aa3982b3acf6.tar.gz poezio-747674a5ecdd937af197a8ebca96aa3982b3acf6.tar.bz2 poezio-747674a5ecdd937af197a8ebca96aa3982b3acf6.tar.xz poezio-747674a5ecdd937af197a8ebca96aa3982b3acf6.zip |
fix resize problem and default_nick
-rw-r--r-- | data/default_config.cfg | 2 | ||||
-rw-r--r-- | src/window.py | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/data/default_config.cfg b/data/default_config.cfg index a1d1c743..72470335 100644 --- a/data/default_config.cfg +++ b/data/default_config.cfg @@ -2,6 +2,6 @@ server = louiz.org port = 5222 resource = poezio -default_nick = louiz_on_poezio +default_nick = poezio rooms = poezio@conference.codingteam.net:discussion@chat.jabberfr.org logfile = logs 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]: |