Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
e5773ba9
by Philipp Hörist at 2019-03-10T15:53:11Z
1 changed file:
Changes:
| ... | ... | @@ -617,7 +617,7 @@ class XMPPDispatcher(PlugIn): |
| 617 | 617 |
# Backwards compatibility until all handlers support
|
| 618 | 618 |
# properties
|
| 619 | 619 |
signature = inspect.signature(handler['func'])
|
| 620 |
- if 'properties' in signature.parameters:
|
|
| 620 |
+ if len(signature.parameters) > 2:
|
|
| 621 | 621 |
handler['func'](session, stanza, properties)
|
| 622 | 622 |
else:
|
| 623 | 623 |
handler['func'](session, stanza)
|