Substitute a blank JID for the boundjid in API calls.

This commit is contained in:
Lance Stout 2012-07-25 01:33:44 -07:00
parent 98b7e8b10a
commit 7b80ed0807

View File

@ -101,8 +101,10 @@ class APIRegistry(object):
if not jid:
jid = self.xmpp.boundjid
if jid and not isinstance(jid, JID):
elif jid and not isinstance(jid, JID):
jid = JID(jid)
elif jid == JID(''):
jid = self.xmpp.boundjid
if node is None:
node = ''