diff options
author | Lance Stout <lancestout@gmail.com> | 2012-07-25 01:47:26 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-07-25 01:47:26 -0700 |
commit | 16ec0f151a18030a948038aa6eca1f9f1b488928 (patch) | |
tree | fba9d3ec4bd4350a1399dc2375b0aef6b55f8fc8 /sleekxmpp/api.py | |
parent | c42f1ad4c79863261977a9c5ea3b33be0b51b946 (diff) | |
parent | 26dc6e90eae1b9e2675194dbf0a0836561fe62a0 (diff) | |
download | slixmpp-16ec0f151a18030a948038aa6eca1f9f1b488928.tar.gz slixmpp-16ec0f151a18030a948038aa6eca1f9f1b488928.tar.bz2 slixmpp-16ec0f151a18030a948038aa6eca1f9f1b488928.tar.xz slixmpp-16ec0f151a18030a948038aa6eca1f9f1b488928.zip |
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/api.py')
-rw-r--r-- | sleekxmpp/api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/api.py b/sleekxmpp/api.py index 4004f5b7..8de61b34 100644 --- a/sleekxmpp/api.py +++ b/sleekxmpp/api.py @@ -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 = '' |