diff options
author | Lance Stout <lancestout@gmail.com> | 2012-04-06 15:22:36 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-04-06 15:22:36 -0400 |
commit | 83c5a4cd2fd70c250dfb7e566dad7084d99025a6 (patch) | |
tree | 9d4c841ca3fadb781ae38e88ea9f97937cedfe00 | |
parent | 9c61c2882fd1e3617dc6c7617a2da896596a4371 (diff) | |
download | slixmpp-83c5a4cd2fd70c250dfb7e566dad7084d99025a6.tar.gz slixmpp-83c5a4cd2fd70c250dfb7e566dad7084d99025a6.tar.bz2 slixmpp-83c5a4cd2fd70c250dfb7e566dad7084d99025a6.tar.xz slixmpp-83c5a4cd2fd70c250dfb7e566dad7084d99025a6.zip |
Pass JID objects to API callbacks and not strings.
-rw-r--r-- | sleekxmpp/api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/api.py b/sleekxmpp/api.py index 82ff8ae7..25bfe0e6 100644 --- a/sleekxmpp/api.py +++ b/sleekxmpp/api.py @@ -116,6 +116,8 @@ class APIRegistry(object): else: jid = jid.full + jid = JID(jid) + handler = self._handlers[ctype][op]['node'].get((jid, node), None) if handler is None: handler = self._handlers[ctype][op]['jid'].get(jid, None) |