do not print status message if there is not

This commit is contained in:
Yann Leboulanger 2005-05-21 09:53:06 +00:00
parent 1f22ff05bc
commit 6abba7616d
1 changed files with 4 additions and 2 deletions

View File

@ -172,8 +172,10 @@ class Tabbed_chat_window(chat.Chat):
self.redraw_tab(user.jid)
self.draw_widgets(user)
uf_show = helpers.get_uf_show(user.show)
self.print_conversation(_('%s is %s (%s)') % (user.name,
uf_show, user.status), user.jid, 'status')
s = _('%s is %s') % (user.name, uf_show)
if user.status:
s += ' (' + user.status + ')'
self.print_conversation(s, user.jid, 'status')
#print queued messages
if self.plugin.queues[self.account].has_key(user.jid):