diff options
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 6 |
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. |