Mercurial > pidgin.yaz
comparison src/protocols/jabber/iq.c @ 10487:659edfcac14e
[gaim-migrate @ 11777]
Removed protocol preferences.
MSN will display closed conversation messages but not timeouts.
Jabber will not display your OS.
I left the preferences for OSCAR, but removed them from the UI. OSCAR is
complicated because it stores prefs on the server. I'll let Mark figure
out a smarter way to handle that.
As with all slashed prefs, feel free to voice objections.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 08 Jan 2005 20:30:41 +0000 |
parents | 25866d09063d |
children | cef48e318125 |
comparison
equal
deleted
inserted
replaced
10486:84bc372a621e | 10487:659edfcac14e |
---|---|
200 static void jabber_iq_version_parse(JabberStream *js, xmlnode *packet) | 200 static void jabber_iq_version_parse(JabberStream *js, xmlnode *packet) |
201 { | 201 { |
202 JabberIq *iq; | 202 JabberIq *iq; |
203 const char *type, *from, *id; | 203 const char *type, *from, *id; |
204 xmlnode *query; | 204 xmlnode *query; |
205 char *os = NULL; | |
206 | 205 |
207 type = xmlnode_get_attrib(packet, "type"); | 206 type = xmlnode_get_attrib(packet, "type"); |
208 | 207 |
209 if(type && !strcmp(type, "get")) { | 208 if(type && !strcmp(type, "get")) { |
210 | 209 #if 0 |
211 if(!gaim_prefs_get_bool("/plugins/prpl/jabber/hide_os")) { | 210 if(!gaim_prefs_get_bool("/plugins/prpl/jabber/hide_os")) { |
212 struct utsname osinfo; | 211 struct utsname osinfo; |
213 | 212 |
214 uname(&osinfo); | 213 uname(&osinfo); |
215 os = g_strdup_printf("%s %s %s", osinfo.sysname, osinfo.release, | 214 os = g_strdup_printf("%s %s %s", osinfo.sysname, osinfo.release, |
216 osinfo.machine); | 215 osinfo.machine); |
217 } | 216 } |
218 | 217 #endif |
219 from = xmlnode_get_attrib(packet, "from"); | 218 from = xmlnode_get_attrib(packet, "from"); |
220 id = xmlnode_get_attrib(packet, "id"); | 219 id = xmlnode_get_attrib(packet, "id"); |
221 | 220 |
222 iq = jabber_iq_new_query(js, JABBER_IQ_RESULT, "jabber:iq:version"); | 221 iq = jabber_iq_new_query(js, JABBER_IQ_RESULT, "jabber:iq:version"); |
223 xmlnode_set_attrib(iq->node, "to", from); | 222 xmlnode_set_attrib(iq->node, "to", from); |
225 | 224 |
226 query = xmlnode_get_child(iq->node, "query"); | 225 query = xmlnode_get_child(iq->node, "query"); |
227 | 226 |
228 xmlnode_insert_data(xmlnode_new_child(query, "name"), PACKAGE, -1); | 227 xmlnode_insert_data(xmlnode_new_child(query, "name"), PACKAGE, -1); |
229 xmlnode_insert_data(xmlnode_new_child(query, "version"), VERSION, -1); | 228 xmlnode_insert_data(xmlnode_new_child(query, "version"), VERSION, -1); |
229 #if 0 | |
230 if(os) { | 230 if(os) { |
231 xmlnode_insert_data(xmlnode_new_child(query, "os"), os, -1); | 231 xmlnode_insert_data(xmlnode_new_child(query, "os"), os, -1); |
232 g_free(os); | 232 g_free(os); |
233 } | 233 } |
234 | 234 #endif |
235 jabber_iq_send(iq); | 235 jabber_iq_send(iq); |
236 } | 236 } |
237 } | 237 } |
238 | 238 |
239 void jabber_iq_parse(JabberStream *js, xmlnode *packet) | 239 void jabber_iq_parse(JabberStream *js, xmlnode *packet) |