don't show empty () when a pm contact changes his status. fixes #2832

This commit is contained in:
Yann Leboulanger 2006-12-27 11:32:01 +00:00
parent 81fb64f6b2
commit 45341476db
1 changed files with 6 additions and 2 deletions

View File

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