we do not send message to specific resource, so user must not get fooled by the GUI

This commit is contained in:
Nikos Kouremenos 2005-07-18 15:42:29 +00:00
parent 98b44990bb
commit eeeb26469a
1 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
## plugins/tabbed_chat_window.py ## tabbed_chat_window.py
## ##
## Gajim Team: ## Gajim Team:
## - Yann Le Boulanger <asterix@lagaule.org> ## - Yann Le Boulanger <asterix@lagaule.org>
@ -108,12 +108,16 @@ class TabbedChatWindow(chat.Chat):
# some chars need to be escaped.. this fixes '&' # some chars need to be escaped.. this fixes '&'
name = name.replace('&', '&amp;') name = name.replace('&', '&amp;')
#FIXME: uncomment me when we support sending messages to specific resource
# composing full jid # composing full jid
fulljid = jid #fulljid = jid
if self.users[jid].resource: #if self.users[jid].resource:
fulljid += '/' + self.users[jid].resource # fulljid += '/' + self.users[jid].resource
#label_text = '<span weight="heavy" size="x-large">%s</span>\n%s' \
# % (name, fulljid)
label_text = '<span weight="heavy" size="x-large">%s</span>\n%s' \ label_text = '<span weight="heavy" size="x-large">%s</span>\n%s' \
% (name, fulljid) % (name, jid)
# setup the label that holds name and jid # setup the label that holds name and jid
banner_name_label = self.xmls[jid].get_widget('banner_name_label') banner_name_label = self.xmls[jid].get_widget('banner_name_label')