Skip to content
Snippets Groups Projects
Commit 9db3d26c authored by nkour's avatar nkour
Browse files

fix so uf_show works

parent 71912242
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,7 @@ class Logger:
done = False
found_first_line_that_matches = False
while not done:
# it should be utf8 (I don't decode for optimization reasons)
line = f.readline()
if line:
line = helpers.from_one_line(line)
......
......@@ -113,7 +113,8 @@ class HistoryWindow:
msg = _('%(nick)s is now %(status)s: %(status_msg)s') % {'nick': nick,
'status': helpers.get_uf_show(show), 'status_msg': status_msg }
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) }
tag_msg = 'status'
elif type == 'recv':
......@@ -135,7 +136,8 @@ class HistoryWindow:
msg = _('Status is now: %(status)s: %(status_msg)s') % \
{'status': helpers.get_uf_show(data[0]), 'status_msg': status_msg}
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]) }
tag_msg = 'status'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment