From 6abba7616dffe8a742c3bb2e1cdcd83cf239c1f8 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 21 May 2005 09:53:06 +0000 Subject: [PATCH] do not print status message if there is not --- src/tabbed_chat_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 4a4e389c4..830b86e7e 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -172,8 +172,10 @@ class Tabbed_chat_window(chat.Chat): self.redraw_tab(user.jid) self.draw_widgets(user) uf_show = helpers.get_uf_show(user.show) - self.print_conversation(_('%s is %s (%s)') % (user.name, - uf_show, user.status), user.jid, 'status') + s = _('%s is %s') % (user.name, uf_show) + if user.status: + s += ' (' + user.status + ')' + self.print_conversation(s, user.jid, 'status') #print queued messages if self.plugin.queues[self.account].has_key(user.jid):