From 241deac31cf6992d451ff1c044f81df016045193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 27 Mar 2018 22:28:49 +0200 Subject: [PATCH] ChatControl: Display status message nicer --- gajim/chat_control.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gajim/chat_control.py b/gajim/chat_control.py index 2a0015f8b..08d60c2d4 100644 --- a/gajim/chat_control.py +++ b/gajim/chat_control.py @@ -1517,13 +1517,11 @@ class ChatControl(ChatControlBase): self.update_ui() self.parent_win.redraw_tab(self) - self.print_conversation(_('%(name)s is now %(status)s') % {'name': name, - 'status': uf_show}, 'status') - if status: - self.print_conversation(' (', 'status', simple=True) - self.print_conversation('%s' % (status), 'status', simple=True) - self.print_conversation(')', 'status', simple=True) + status = '- %s' % status + status_line = _('%(name)s is now %(show)s %(status)s') % { + 'name': name, 'show': uf_show, 'status': status or ''} + self.print_conversation(status_line, 'status') def _info_bar_show_message(self): if self.info_bar.get_visible():