summaryrefslogtreecommitdiff
path: root/sleekxmpp/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/api.py')
-rw-r--r--sleekxmpp/api.py2
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)