Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: 730a1520 by Philipp Hörist at 2018-12-19T14:37:55Z Allow registering handlers for type normal
- - - - -
1 changed file:
- nbxmpp/dispatcher_nb.py
Changes:
===================================== nbxmpp/dispatcher_nb.py ===================================== @@ -448,7 +448,9 @@ class XMPPDispatcher(PlugIn): stanza = self.handlers[xmlns][name][type](node=stanza)
typ = stanza.getType() - if not typ: + if name == 'message' and not typ: + typ = 'normal' + elif not typ: typ = '' stanza.props = stanza.getProperties() ID = stanza.getID() @@ -472,6 +474,7 @@ class XMPPDispatcher(PlugIn): for key in list_: if key: chain = chain + self.handlers[xmlns][name][key] + log.debug('Chain: %s', [key for key in list_ if key])
if ID in session._expected: user = 0
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/730a1520220270f68cb38f17e42...