From 45341476db776d3bc8439ac73dddc7a7b9f6dbf7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 27 Dec 2006 11:32:01 +0000 Subject: [PATCH] don't show empty () when a pm contact changes his status. fixes #2832 --- src/gajim.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 716dfe8d7..b13525eca 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1054,8 +1054,12 @@ class Interface: contact.status = status ctrl.update_ui() uf_show = helpers.get_uf_show(show) - ctrl.print_conversation(_('%s is now %s (%s)') % (nick, uf_show, status), - 'status') + if status: + ctrl.print_conversation(_('%s is now %s (%s)') % (nick, uf_show, + status), 'status') + else: + ctrl.print_conversation(_('%s is now %s') % (nick, uf_show), + 'status') ctrl.parent_win.redraw_tab(ctrl) if self.remote_ctrl: self.remote_ctrl.raise_signal('GCPresence', (account, array))