summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-18 23:07:28 +0200
committermathieui <mathieui@mathieui.net>2012-04-18 23:07:28 +0200
commitbdcddf56e12567d20baa38717335f41c49e978bc (patch)
treef64c84d8f489055aa16914f968d3e51709bb3cf8 /src
parent2ad7416a6d2effb548e0b374ee47cc2fd14ffd53 (diff)
downloadpoezio-bdcddf56e12567d20baa38717335f41c49e978bc.tar.gz
poezio-bdcddf56e12567d20baa38717335f41c49e978bc.tar.bz2
poezio-bdcddf56e12567d20baa38717335f41c49e978bc.tar.xz
poezio-bdcddf56e12567d20baa38717335f41c49e978bc.zip
Load xep_0092 even if send_poezio_info is false
Diffstat (limited to 'src')
-rw-r--r--src/connection.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py
index e4e2cfb2..2c51a78c 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -62,7 +62,9 @@ class Connection(sleekxmpp.ClientXMPP):
'version':'0.7.5-dev'}
if config.get('send_os_info', 'true') == 'true':
info['os'] = common.get_os_info()
- self.register_plugin('xep_0092', pconfig=info)
+ else:
+ info = {'name': '', 'version': ''}
+ self.register_plugin('xep_0092', pconfig=info)
if config.get('send_time', 'true') == 'true':
self.register_plugin('xep_0202')
self.register_plugin('xep_0224')