summaryrefslogtreecommitdiff
path: root/poezio/connection.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-08 15:04:59 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-08 15:04:59 +0100
commita468e1614092a4bc448f473272cc41ca992b4171 (patch)
tree90aa9bc9750bdccdafba3eb757bf13ee98c7f3eb /poezio/connection.py
parentac6adbf21b71985579b81e14712ded85bf3743f2 (diff)
downloadpoezio-a468e1614092a4bc448f473272cc41ca992b4171.tar.gz
poezio-a468e1614092a4bc448f473272cc41ca992b4171.tar.bz2
poezio-a468e1614092a4bc448f473272cc41ca992b4171.tar.xz
poezio-a468e1614092a4bc448f473272cc41ca992b4171.zip
Add HTTP File Upload support.
Diffstat (limited to 'poezio/connection.py')
-rw-r--r--poezio/connection.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/poezio/connection.py b/poezio/connection.py
index 61837ecb..3ccfa8ce 100644
--- a/poezio/connection.py
+++ b/poezio/connection.py
@@ -174,6 +174,14 @@ class Connection(slixmpp.ClientXMPP):
self.register_plugin('xep_0319')
self.register_plugin('xep_0334')
self.register_plugin('xep_0352')
+ try:
+ self.register_plugin('xep_0363')
+ except SyntaxError:
+ log.error('Failed to load HTTP File Upload plugin, it can only be '
+ 'used on Python 3.5+')
+ except slixmpp.plugins.base.PluginNotFound:
+ log.error('Failed to load HTTP File Upload plugin, it can only be '
+ 'used with aiohttp installed')
self.register_plugin('xep_0380')
self.init_plugins()