diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-01 23:14:28 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-01 23:14:28 +0000 |
commit | 6b484978db66385da22b356f99e3582671b9cf73 (patch) | |
tree | c16b59be69e95472bea0f5351b32daf9117843ad /src/window.py | |
parent | bbd32649e2c45afc8ecf94a130dad627308775fe (diff) | |
download | poezio-6b484978db66385da22b356f99e3582671b9cf73.tar.gz poezio-6b484978db66385da22b356f99e3582671b9cf73.tar.bz2 poezio-6b484978db66385da22b356f99e3582671b9cf73.tar.xz poezio-6b484978db66385da22b356f99e3582671b9cf73.zip |
fixed #1570
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.py b/src/window.py index 1a4d19f5..2bb3c133 100644 --- a/src/window.py +++ b/src/window.py @@ -170,6 +170,10 @@ class RoomInfo(Win): try: self.win.addstr(y, x-1, '] '+ current.name, curses.color_pair(1)) except: + try: + self.win.addstr(y, x-1, '] '+ current.name.encode('utf-8'), curses.color_pair(1)) + except: + pass pass while True: try: @@ -201,6 +205,8 @@ class TextWin(Win): lines = [] for message in messages: txt = message.txt + if not txt: + continue offset = 11 # length of the time if message.nickname and len(message.nickname) >= 30: nick = message.nickname[:30]+u'…' |