From dc894b9849e502a1dc7bd1987a1a122b6a227dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 17 Mar 2022 00:11:07 +0100 Subject: plugin_e2ee: Ensure supported_tab_types is specified in plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_e2ee.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index e3e4dc75..a6ad6bcd 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -151,6 +151,9 @@ class E2EEPlugin(BasePlugin): if self.encryption_short_name is None: self.encryption_short_name = self.encryption_name + if not self.supported_tab_types: + raise NotImplementedError + # Ensure decryption is done before everything, so that other handlers # don't have to know about the encryption mechanism. self.api.add_event_handler('muc_msg', self._decrypt_wrapper, priority=0) -- cgit v1.2.3