From 02ed060a90d1eb6b8d2da377e20bc797148a7fea Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 14 Mar 2006 17:19:54 +0000 Subject: [PATCH] chaw resource in banner when talking to a specific resource --- src/chat_control.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index f2d1cbe37..97e03fb3b 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -831,7 +831,10 @@ class ChatControl(ChatControlBase): jid = contact.jid 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 # with the same nick we need to also display the account.