Add a check for slixmpp xep_0363 plugin.

This commit is contained in:
Emmanuel Gil Peyrot 2018-03-09 12:44:29 +01:00
parent a468e16140
commit aa3c4dea96

View file

@ -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>',