chaw resource in banner when talking to a specific resource

This commit is contained in:
Yann Leboulanger 2006-03-14 17:19:54 +00:00
parent 51d57ba717
commit 02ed060a90
1 changed files with 4 additions and 1 deletions

View File

@ -831,7 +831,10 @@ class ChatControl(ChatControlBase):
jid = contact.jid jid = contact.jid
banner_name_label = self.xml.get_widget('banner_name_label') banner_name_label = self.xml.get_widget('banner_name_label')
name = gtkgui_helpers.escape_for_pango_markup(contact.get_shown_name()) name = contact.get_shown_name()
if self.resource:
name += '/' + self.resource
name = gtkgui_helpers.escape_for_pango_markup(name)
# We know our contacts nick, but if there are any other controls # We know our contacts nick, but if there are any other controls
# with the same nick we need to also display the account. # with the same nick we need to also display the account.