From 03a98e86d89e4876b17d2b596e1c65c0255f2e28 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 23 Jun 2005 19:35:47 +0000 Subject: [PATCH] we now show the resource in tabbed_chat_window (thx Liorithiel) --- src/tabbed_chat_window.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index e1542a091..ef1ed1b38 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -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 = '%s\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')