Skip to content
Snippets Groups Projects
Commit 147ed3c5 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Adapt nbxmpp handler registration

parent 135be5ca
No related branches found
No related tags found
No related merge requests found
......@@ -374,7 +374,7 @@ def change_status(self, show, msg, auto=False):
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 @@ def _register_modules_with_handlers(self, plugin):
# 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 @@ def _unregister_modules_with_handlers(self, plugin):
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):
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment