fix so uf_show works

This commit is contained in:
Nikos Kouremenos 2005-11-21 08:56:45 +00:00
parent 71912242be
commit 9db3d26c1f
2 changed files with 5 additions and 2 deletions

View File

@ -186,6 +186,7 @@ class Logger:
done = False done = False
found_first_line_that_matches = False found_first_line_that_matches = False
while not done: while not done:
# it should be utf8 (I don't decode for optimization reasons)
line = f.readline() line = f.readline()
if line: if line:
line = helpers.from_one_line(line) line = helpers.from_one_line(line)

View File

@ -113,7 +113,8 @@ class HistoryWindow:
msg = _('%(nick)s is now %(status)s: %(status_msg)s') % {'nick': nick, msg = _('%(nick)s is now %(status)s: %(status_msg)s') % {'nick': nick,
'status': helpers.get_uf_show(show), 'status_msg': status_msg } 'status': helpers.get_uf_show(show), 'status_msg': status_msg }
else: else:
msg = _('%(nick)s is now %(status)s') % {'nick': nick, show = show[:-1] # remove last \n
msg = _('%(nick)s is now %(status)s\n') % {'nick': nick,
'status': helpers.get_uf_show(show) } 'status': helpers.get_uf_show(show) }
tag_msg = 'status' tag_msg = 'status'
elif type == 'recv': elif type == 'recv':
@ -135,7 +136,8 @@ class HistoryWindow:
msg = _('Status is now: %(status)s: %(status_msg)s') % \ msg = _('Status is now: %(status)s: %(status_msg)s') % \
{'status': helpers.get_uf_show(data[0]), 'status_msg': status_msg} {'status': helpers.get_uf_show(data[0]), 'status_msg': status_msg}
else: else:
msg = _('Status is now: %(status)s') % { 'status': data[0] = data[0][:-1] # remove last \n
msg = _('Status is now: %(status)s\n') % { 'status':
helpers.get_uf_show(data[0]) } helpers.get_uf_show(data[0]) }
tag_msg = 'status' tag_msg = 'status'