summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-07-27 16:07:27 +0200
committerFlorent Le Coz <louiz@louiz.org>2012-07-27 16:07:27 +0200
commitc9ea00b963bbaf68ce14fd87d4b97a0541b96b9a (patch)
tree4e1679f4e08bf6b29ee07db050dba55949cb7042
parent0f7b680c12a14e7d3b605f17ce14c0666c32bd63 (diff)
downloadpoezio-c9ea00b963bbaf68ce14fd87d4b97a0541b96b9a.tar.gz
poezio-c9ea00b963bbaf68ce14fd87d4b97a0541b96b9a.tar.bz2
poezio-c9ea00b963bbaf68ce14fd87d4b97a0541b96b9a.tar.xz
poezio-c9ea00b963bbaf68ce14fd87d4b97a0541b96b9a.zip
Fix get_conversation_by_jid when a string is passed.
-rw-r--r--src/core.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 1bedf2ef..b783f538 100644
--- a/src/core.py
+++ b/src/core.py
@@ -623,6 +623,7 @@ class Core(object):
If none already exist, and create is "True", we create it
and return it. Otherwise, we return None
"""
+ jid = JID(jid)
# We first check if we have a conversation opened with this precise resource
conversation = self.get_tab_by_name(jid.full, tabs.ConversationTab)
if not conversation: