code to take into account the do_not_send_os_info option (need gajim restart to be tacken into account, will be fixed when threads will be removed)
This commit is contained in:
parent
1c7076cfb0
commit
8d1df45f4d
|
@ -632,7 +632,11 @@ class GajimCore:
|
||||||
qp = iq_obj.getTag('query')
|
qp = iq_obj.getTag('query')
|
||||||
qp.insertTag('name').insertData('Gajim')
|
qp.insertTag('name').insertData('Gajim')
|
||||||
qp.insertTag('version').insertData(version.version)
|
qp.insertTag('version').insertData(version.version)
|
||||||
qp.insertTag('os').insertData(get_os_info())
|
no_send_os = True
|
||||||
|
if self.cfgParser.tab['GtkGui'].has_key('do_not_send_os_info'):
|
||||||
|
no_send_os = self.cfgParser.tab['GtkGui']['do_not_send_os_info']
|
||||||
|
if not no_send_os:
|
||||||
|
qp.insertTag('os').insertData(get_os_info())
|
||||||
con.send(iq_obj)
|
con.send(iq_obj)
|
||||||
|
|
||||||
def connect(self, account):
|
def connect(self, account):
|
||||||
|
|
Loading…
Reference in New Issue