Add a check for slixmpp xep_0363 plugin.
This commit is contained in:
parent
a468e16140
commit
aa3c4dea96
1 changed files with 2 additions and 0 deletions
|
@ -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>',
|
||||
|
|
Loading…
Reference in a new issue