fix resize problem and default_nick

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-01-31 15:35:59 +00:00
parent 01592050cb
commit 747674a5ec
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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]: