[Jim++] do not print (None) if status msg is None on chat

This commit is contained in:
Nikos Kouremenos 2006-03-12 23:07:04 +00:00
parent e8223e1d9d
commit ea50611b8f
1 changed files with 5 additions and 1 deletions

View File

@ -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):