Commit 147ed3c5 authored by Philipp Hörist's avatar Philipp Hörist

Adapt nbxmpp handler registration

parent 135be5ca
......@@ -374,7 +374,7 @@ class Client(ConnectionHandlers):
def _register_new_handlers(self):
for handler in modules.get_handlers(self):
self._client.register_handler(*handler)
self._client.register_handler(handler)
self.handlers_registered = True
def get_module(self, name):
......
......@@ -412,7 +412,7 @@ class PluginManager(metaclass=Singleton):
# in connection_handlers._register_handlers()
if con.handlers_registered:
for handler in instance.handlers:
con.connection.register_handler(*handler)
con.connection.register_handler(handler)
def _unregister_modules_with_handlers(self, plugin):
if not hasattr(plugin, 'modules'):
......@@ -428,7 +428,7 @@ class PluginManager(metaclass=Singleton):
for handler in instance.handlers:
if len(handler) > 4:
handler = handler[:4]
con.connection.unregister_handler(*handler)
con.connection.unregister_handler(handler)
def activate_plugin(self, plugin):
'''
......
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