From 83c5a4cd2fd70c250dfb7e566dad7084d99025a6 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 6 Apr 2012 15:22:36 -0400 Subject: Pass JID objects to API callbacks and not strings. --- sleekxmpp/api.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sleekxmpp') 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) -- cgit v1.2.3