summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-09 12:44:29 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-09 12:44:29 +0100
commitaa3c4dea96466d413e30e4a6394c5665edf0ef9e (patch)
treecc0717aca1b1ef7ea0b82d77e91667f288503516 /plugins
parenta468e1614092a4bc448f473272cc41ca992b4171 (diff)
downloadpoezio-aa3c4dea96466d413e30e4a6394c5665edf0ef9e.tar.gz
poezio-aa3c4dea96466d413e30e4a6394c5665edf0ef9e.tar.bz2
poezio-aa3c4dea96466d413e30e4a6394c5665edf0ef9e.tar.xz
poezio-aa3c4dea96466d413e30e4a6394c5665edf0ef9e.zip
Add a check for slixmpp xep_0363 plugin.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/upload.py2
1 files changed, 2 insertions, 0 deletions
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='<filename>',