diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2022-03-19 10:30:56 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2022-03-23 16:44:27 +0100 |
commit | f4ce42c8c7357f6545f4d0e70882fef3fd02a4b0 (patch) | |
tree | 69eff94e35adbfc1aa9fdc5f115ce29e717d59af | |
parent | 3c7961dff769dc2c7d200fae9e89f3a35345c37f (diff) | |
download | poezio-f4ce42c8c7357f6545f4d0e70882fef3fd02a4b0.tar.gz poezio-f4ce42c8c7357f6545f4d0e70882fef3fd02a4b0.tar.bz2 poezio-f4ce42c8c7357f6545f4d0e70882fef3fd02a4b0.tar.xz poezio-f4ce42c8c7357f6545f4d0e70882fef3fd02a4b0.zip |
poezio/connection: register xep_0454
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/connection.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/poezio/connection.py b/poezio/connection.py index 55cf76e3..291c3cd5 100644 --- a/poezio/connection.py +++ b/poezio/connection.py @@ -204,6 +204,11 @@ class Connection(slixmpp.ClientXMPP): log.error('Failed to load HTTP File Upload plugin, it can only be ' 'used with aiohttp installed') self.register_plugin('xep_0380') + try: + self.register_plugin('xep_0454') + except slixmpp.plugins.base.PluginNotFound: + log.error('Failed to load Media Sharing plugin, ' + 'it requires slixmpp 1.8.1.') self.init_plugins() def set_keepalive_values(self, option=None, value=None): |