Commit e5773ba9 authored by Philipp Hörist's avatar Philipp Hörist

Use count of parameters instead of name

parent 6d9d8f72
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment