From ea50611b8f800ab78061dda88cae6fc7b0b65399 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 12 Mar 2006 23:07:04 +0000 Subject: [PATCH] [Jim++] do not print (None) if status msg is None on chat --- src/roster_window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index dc9f7973a..4b95a637c 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -882,7 +882,11 @@ class RosterWindow: if contact.resource != '': name += '/' + contact.resource uf_show = helpers.get_uf_show(show) - ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show, status), + if status: + ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show, status), + 'status') + else: # No status message + ctrl.print_conversation(_('%s is now %s') % (name, uf_show), 'status') if contact == gajim.contacts.get_contact_with_highest_priority(account, contact.jid):