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:
Yann Leboulanger 2005-04-06 19:19:20 +00:00
parent 1c7076cfb0
commit 8d1df45f4d
1 changed files with 5 additions and 1 deletions

View File

@ -632,7 +632,11 @@ class GajimCore:
qp = iq_obj.getTag('query')
qp.insertTag('name').insertData('Gajim')
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)
def connect(self, account):