From 147ed3c502217f6377fc0972f1cfddd0faf7b359 Mon Sep 17 00:00:00 2001 From: lovetox <philipp@hoerist.com> Date: Wed, 29 Apr 2020 22:08:53 +0200 Subject: [PATCH] Adapt nbxmpp handler registration --- gajim/common/client.py | 2 +- gajim/plugins/pluginmanager.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gajim/common/client.py b/gajim/common/client.py index 9f5bc4c4cc..2d60cf9857 100644 --- a/gajim/common/client.py +++ b/gajim/common/client.py @@ -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): diff --git a/gajim/plugins/pluginmanager.py b/gajim/plugins/pluginmanager.py index d606ee5c70..daaccb19de 100644 --- a/gajim/plugins/pluginmanager.py +++ b/gajim/plugins/pluginmanager.py @@ -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): ''' -- GitLab