Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2011-07-24 01:03:46 +0400
committerYann Leboulanger <asterix@lagaule.org>2011-07-24 01:03:46 +0400
commit0c65ea1ce66155564fa123525a46c77f23d3d07a (patch)
treeecba566f61d1f821419ba4232134b00d15ee96d8 /src/session.py
parentad7f389a912b8237b5a857453d493853d0ef9da3 (diff)
fix some data conversion. jid is a xmpp.JID instance
Diffstat (limited to 'src/session.py')
-rw-r--r--src/session.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/session.py b/src/session.py
index 4a7b62e76..a4e9de595 100644
--- a/src/session.py
+++ b/src/session.py
@@ -526,10 +526,11 @@ Are these options acceptable?''') % (negotiation.describe_features(
# around to test my test suite.
if form.getType() == 'form':
if not self.control:
- jid, resource = gajim.get_room_and_nick_from_fjid(self.jid)
+ jid, resource = gajim.get_room_and_nick_from_fjid(str(self.jid))
account = self.conn.name
- contact = gajim.contacts.get_contact(account, self.jid, resource)
+ contact = gajim.contacts.get_contact(account, str(self.jid),
+ resource)
if not contact:
contact = gajim.contacts.create_contact(jid=jid, account=account,
@@ -538,4 +539,5 @@ Are these options acceptable?''') % (negotiation.describe_features(
gajim.interface.new_chat(contact, account, resource=resource,
session=self)
- negotiation.FeatureNegotiationWindow(account, self.jid, self, form)
+ negotiation.FeatureNegotiationWindow(account, str(self.jid), self,
+ form)