summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-11 11:43:32 +0100
committermathieui <mathieui@mathieui.net>2013-03-11 11:43:32 +0100
commit34af8f69c7aff2d02a10fab954ae7ddf15cee193 (patch)
tree28cafafe4fc859b319bb407409e0cba87d35f00e /src
parente4f72d05c396851b2fa78534155bca9fab04f96f (diff)
downloadpoezio-34af8f69c7aff2d02a10fab954ae7ddf15cee193.tar.gz
poezio-34af8f69c7aff2d02a10fab954ae7ddf15cee193.tar.bz2
poezio-34af8f69c7aff2d02a10fab954ae7ddf15cee193.tar.xz
poezio-34af8f69c7aff2d02a10fab954ae7ddf15cee193.zip
Add a receive_user_tune option (fix #2261)
Diffstat (limited to 'src')
-rw-r--r--src/connection.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py
index 5b5ecba2..51fef78d 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -70,8 +70,10 @@ class Connection(sleekxmpp.ClientXMPP):
self.register_plugin('xep_0071')
self.register_plugin('xep_0085')
self.register_plugin('xep_0115')
- self.register_plugin('xep_0118')
self.register_plugin('xep_0191')
+
+ if config.get('receive_user_tune', 'true') != 'false':
+ self.register_plugin('xep_0118')
if config.get('send_poezio_info', 'true') == 'true':
info = {'name':'poezio',
'version': options.version}
@@ -87,6 +89,8 @@ class Connection(sleekxmpp.ClientXMPP):
self.register_plugin('xep_0224')
self.register_plugin('xep_0308')
+ self.plugin['xep_0115'].update_caps()
+
def start(self):
# TODO, try multiple servers
# With anon auth.