Commit 83c5a4cd authored by Lance Stout's avatar Lance Stout

Pass JID objects to API callbacks and not strings.

parent 9c61c288
......@@ -116,6 +116,8 @@ class APIRegistry(object):
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment