From aa3c4dea96466d413e30e4a6394c5665edf0ef9e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 9 Mar 2018 12:44:29 +0100 Subject: Add a check for slixmpp xep_0363 plugin. --- plugins/upload.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/upload.py b/plugins/upload.py index 98379c33..bfdbe47b 100644 --- a/plugins/upload.py +++ b/plugins/upload.py @@ -28,6 +28,8 @@ from poezio import tabs class Plugin(BasePlugin): def init(self): + if not self.core.xmpp['xep_0363']: + raise Exception('slixmpp XEP-0363 plugin failed to load') for _class in (tabs.PrivateTab, tabs.ConversationTab, tabs.MucTab): self.api.add_tab_command(_class, 'upload', self.command_upload, usage='', -- cgit v1.2.3