Pass JID objects to API callbacks and not strings.
This commit is contained in:
parent
9c61c2882f
commit
83c5a4cd2f
@ -116,6 +116,8 @@ class APIRegistry(object):
|
|||||||
else:
|
else:
|
||||||
jid = jid.full
|
jid = jid.full
|
||||||
|
|
||||||
|
jid = JID(jid)
|
||||||
|
|
||||||
handler = self._handlers[ctype][op]['node'].get((jid, node), None)
|
handler = self._handlers[ctype][op]['node'].get((jid, node), None)
|
||||||
if handler is None:
|
if handler is None:
|
||||||
handler = self._handlers[ctype][op]['jid'].get(jid, None)
|
handler = self._handlers[ctype][op]['jid'].get(jid, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user