[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,8 +882,12 @@ class RosterWindow:
if contact.resource != '': if contact.resource != '':
name += '/' + contact.resource name += '/' + contact.resource
uf_show = helpers.get_uf_show(show) uf_show = helpers.get_uf_show(show)
if status:
ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show, status), ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show, status),
'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, if contact == gajim.contacts.get_contact_with_highest_priority(account,
contact.jid): contact.jid):
ctrl.draw_banner() ctrl.draw_banner()