Pass JID objects to API callbacks and not strings.
This commit is contained in:
parent
9c61c2882f
commit
83c5a4cd2f
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue