Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

1 changed file:

Changes:

  • nbxmpp/dispatcher.py
    ... ... @@ -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)