fixed #1570
This commit is contained in:
parent
bbd32649e2
commit
6b484978db
1 changed files with 6 additions and 0 deletions
|
@ -170,6 +170,10 @@ class RoomInfo(Win):
|
||||||
try:
|
try:
|
||||||
self.win.addstr(y, x-1, '] '+ current.name, curses.color_pair(1))
|
self.win.addstr(y, x-1, '] '+ current.name, curses.color_pair(1))
|
||||||
except:
|
except:
|
||||||
|
try:
|
||||||
|
self.win.addstr(y, x-1, '] '+ current.name.encode('utf-8'), curses.color_pair(1))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
pass
|
pass
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
@ -201,6 +205,8 @@ class TextWin(Win):
|
||||||
lines = []
|
lines = []
|
||||||
for message in messages:
|
for message in messages:
|
||||||
txt = message.txt
|
txt = message.txt
|
||||||
|
if not txt:
|
||||||
|
continue
|
||||||
offset = 11 # length of the time
|
offset = 11 # length of the time
|
||||||
if message.nickname and len(message.nickname) >= 30:
|
if message.nickname and len(message.nickname) >= 30:
|
||||||
nick = message.nickname[:30]+u'…'
|
nick = message.nickname[:30]+u'…'
|
||||||
|
|
Loading…
Reference in a new issue