don't show empty () when a pm contact changes his status. fixes #2832
This commit is contained in:
parent
81fb64f6b2
commit
45341476db
|
@ -1054,8 +1054,12 @@ class Interface:
|
||||||
contact.status = status
|
contact.status = status
|
||||||
ctrl.update_ui()
|
ctrl.update_ui()
|
||||||
uf_show = helpers.get_uf_show(show)
|
uf_show = helpers.get_uf_show(show)
|
||||||
ctrl.print_conversation(_('%s is now %s (%s)') % (nick, uf_show, status),
|
if status:
|
||||||
'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)
|
ctrl.parent_win.redraw_tab(ctrl)
|
||||||
if self.remote_ctrl:
|
if self.remote_ctrl:
|
||||||
self.remote_ctrl.raise_signal('GCPresence', (account, array))
|
self.remote_ctrl.raise_signal('GCPresence', (account, array))
|
||||||
|
|
Loading…
Reference in New Issue