From 4266ee0fa4b2520ed930047ea73d6ac82d9b1f83 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 8 Jun 2011 10:00:28 -0700 Subject: [PATCH] Fix XEP-0050 issue with Unicode string type checking. --- sleekxmpp/plugins/xep_0050/adhoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/plugins/xep_0050/adhoc.py b/sleekxmpp/plugins/xep_0050/adhoc.py index fe964e9..72c6c51 100644 --- a/sleekxmpp/plugins/xep_0050/adhoc.py +++ b/sleekxmpp/plugins/xep_0050/adhoc.py @@ -171,7 +171,7 @@ class xep_0050(base_plugin): """ if jid is None: jid = self.xmpp.boundjid - elif isinstance(jid, str): + elif not isinstance(jid, JID): jid = JID(jid) item_jid = jid.full