Load xep_0092 even if send_poezio_info is false

This commit is contained in:
mathieui 2012-04-18 23:07:28 +02:00
parent 2ad7416a6d
commit bdcddf56e1

View file

@ -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')