we now show the resource in tabbed_chat_window (thx Liorithiel)

This commit is contained in:
Yann Leboulanger 2005-06-23 19:35:47 +00:00
parent 9f925c236e
commit 03a98e86d8
1 changed files with 6 additions and 1 deletions

View File

@ -102,8 +102,13 @@ class TabbedChatWindow(chat.Chat):
# this is the text for the big brown bar
# some chars need to be escaped.. this fixes '&'
name = name.replace('&', '&')
# composing full jid
fulljid = jid
if self.users[jid].resource:
fulljid += '/' + self.users[jid].resource
label_text = '<span weight="heavy" size="x-large">%s</span>\n%s' \
% (name, jid)
% (name, fulljid)
# setup the label that holds name and jid
banner_name_label = self.xmls[jid].get_widget('banner_name_label')