summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-03-17 00:11:07 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-03-17 00:11:07 +0100
commitdc894b9849e502a1dc7bd1987a1a122b6a227dcf (patch)
tree561efacdb3eb62e96bfca9693477e4a0a29a6947
parent9168b577cdc1e54fa44c7650c7df55911ea6d397 (diff)
downloadpoezio-dc894b9849e502a1dc7bd1987a1a122b6a227dcf.tar.gz
poezio-dc894b9849e502a1dc7bd1987a1a122b6a227dcf.tar.bz2
poezio-dc894b9849e502a1dc7bd1987a1a122b6a227dcf.tar.xz
poezio-dc894b9849e502a1dc7bd1987a1a122b6a227dcf.zip
plugin_e2ee: Ensure supported_tab_types is specified in plugin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/plugin_e2ee.py3
1 files changed, 3 insertions, 0 deletions
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)