Fix XEP-0050 issue with Unicode string type checking.

This commit is contained in:
Lance Stout 2011-06-08 10:00:28 -07:00
parent 3a62908703
commit 4266ee0fa4

View file

@ -171,7 +171,7 @@ class xep_0050(base_plugin):
""" """
if jid is None: if jid is None:
jid = self.xmpp.boundjid jid = self.xmpp.boundjid
elif isinstance(jid, str): elif not isinstance(jid, JID):
jid = JID(jid) jid = JID(jid)
item_jid = jid.full item_jid = jid.full