Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: e5773ba9 by Philipp Hörist at 2019-03-10T15:53:11Z Use count of parameters instead of name
- - - - -
1 changed file:
- nbxmpp/dispatcher.py
Changes:
===================================== nbxmpp/dispatcher.py ===================================== @@ -617,7 +617,7 @@ class XMPPDispatcher(PlugIn): # Backwards compatibility until all handlers support # properties signature = inspect.signature(handler['func']) - if 'properties' in signature.parameters: + if len(signature.parameters) > 2: handler['func'](session, stanza, properties) else: handler['func'](session, stanza)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/e5773ba9221401ee40a1893e6c7...