Mercurial > pidgin
comparison libpurple/protocols/jabber/iq.c @ 21085:7821fa7b22db
propagate from branch 'im.pidgin.pidgin' (head ef97aa9259d77504bb07c2dff5ec0750d498e847)
to branch 'org.maemo.garage.pidgin.pidgin.request-with-ui-hint' (head e8b5729ce3e73070299b06e0fba894a819d5cbb4)
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Wed, 10 Oct 2007 23:20:18 +0000 |
parents | 1c611d0df04f |
children | a4b6854737d5 |
comparison
equal
deleted
inserted
replaced
21084:3a00e048578c | 21085:7821fa7b22db |
---|---|
246 static void jabber_iq_version_parse(JabberStream *js, xmlnode *packet) | 246 static void jabber_iq_version_parse(JabberStream *js, xmlnode *packet) |
247 { | 247 { |
248 JabberIq *iq; | 248 JabberIq *iq; |
249 const char *type, *from, *id; | 249 const char *type, *from, *id; |
250 xmlnode *query; | 250 xmlnode *query; |
251 char *os = NULL; | |
252 | 251 |
253 type = xmlnode_get_attrib(packet, "type"); | 252 type = xmlnode_get_attrib(packet, "type"); |
254 | 253 |
255 if(type && !strcmp(type, "get")) { | 254 if(type && !strcmp(type, "get")) { |
256 GHashTable *ui_info; | 255 GHashTable *ui_info; |
257 const char *ui_name = NULL, *ui_version = NULL; | 256 const char *ui_name = NULL, *ui_version = NULL; |
258 #if 0 | 257 #if 0 |
258 char *os = NULL; | |
259 if(!purple_prefs_get_bool("/plugins/prpl/jabber/hide_os")) { | 259 if(!purple_prefs_get_bool("/plugins/prpl/jabber/hide_os")) { |
260 struct utsname osinfo; | 260 struct utsname osinfo; |
261 | 261 |
262 uname(&osinfo); | 262 uname(&osinfo); |
263 os = g_strdup_printf("%s %s %s", osinfo.sysname, osinfo.release, | 263 os = g_strdup_printf("%s %s %s", osinfo.sysname, osinfo.release, |
288 } else { | 288 } else { |
289 xmlnode_insert_data(xmlnode_new_child(query, "name"), "libpurple", -1); | 289 xmlnode_insert_data(xmlnode_new_child(query, "name"), "libpurple", -1); |
290 xmlnode_insert_data(xmlnode_new_child(query, "version"), VERSION, -1); | 290 xmlnode_insert_data(xmlnode_new_child(query, "version"), VERSION, -1); |
291 } | 291 } |
292 | 292 |
293 #if 0 | |
293 if(os) { | 294 if(os) { |
294 xmlnode_insert_data(xmlnode_new_child(query, "os"), os, -1); | 295 xmlnode_insert_data(xmlnode_new_child(query, "os"), os, -1); |
295 g_free(os); | 296 g_free(os); |
296 } | 297 } |
298 #endif | |
297 | 299 |
298 jabber_iq_send(iq); | 300 jabber_iq_send(iq); |
299 } | 301 } |
300 } | 302 } |
301 | 303 |