summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-04 18:52:36 +0200
committermathieui <mathieui@mathieui.net>2012-05-04 18:52:36 +0200
commit7778ad921620e7143fc59be4bd9d2ecb9ad08704 (patch)
tree83d2884b4f40a995906749076c271db36c67c085
parent8fc6e536612bc79b7371db31560043d084e1d724 (diff)
downloadpoezio-7778ad921620e7143fc59be4bd9d2ecb9ad08704.tar.gz
poezio-7778ad921620e7143fc59be4bd9d2ecb9ad08704.tar.bz2
poezio-7778ad921620e7143fc59be4bd9d2ecb9ad08704.tar.xz
poezio-7778ad921620e7143fc59be4bd9d2ecb9ad08704.zip
0030 query now says 'Poezio' or nothing for the client’s identity
(Fixes #2273)
-rw-r--r--src/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connection.py b/src/connection.py
index 2c51a78c..ce300261 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -62,8 +62,10 @@ class Connection(sleekxmpp.ClientXMPP):
'version':'0.7.5-dev'}
if config.get('send_os_info', 'true') == 'true':
info['os'] = common.get_os_info()
+ self.plugin['xep_0030'].set_identities(identities=set([('client', 'pc', None,'Poezio')]))
else:
info = {'name': '', 'version': ''}
+ self.plugin['xep_0030'].set_identities(identities=set([('client', 'pc', None,'')]))
self.register_plugin('xep_0092', pconfig=info)
if config.get('send_time', 'true') == 'true':
self.register_plugin('xep_0202')