comparison libpurple/protocols/jabber/disco.c @ 15522:ccbdf500f13a

Google Talk uses structured text formatting where *this* is bold and _this_ is italic. If you're using Google Talk and receive a message, do that conversion. I admit this is proably the silliest Google Talk extension to add support for. But it seemed like it might be fun (turns out I was wrong).
author Sean Egan <seanegan@gmail.com>
date Sat, 03 Feb 2007 23:32:43 +0000
parents 5fe8042783c1
children afa4230ccdd2
comparison
equal deleted inserted replaced
15521:aa0c1aa85fd3 15522:ccbdf500f13a
255 if (!query) { 255 if (!query) {
256 jabber_disco_finish_server_info_result_cb(js); 256 jabber_disco_finish_server_info_result_cb(js);
257 return; 257 return;
258 } 258 }
259 259
260 for (child = xmlnode_get_child(query, "category"); child; 260 for (child = xmlnode_get_child(query, "identity"); child;
261 child = xmlnode_get_next_twin(child)) { 261 child = xmlnode_get_next_twin(child)) {
262 const char *category, *type, *name; 262 const char *category, *type, *name;
263 category = xmlnode_get_attrib(child, "category"); 263 category = xmlnode_get_attrib(child, "category");
264 if (!category || strcmp(category, "server")) 264 if (!category || strcmp(category, "server"))
265 continue; 265 continue;
271 if (!name) 271 if (!name)
272 continue; 272 continue;
273 273
274 g_free(js->server_name); 274 g_free(js->server_name);
275 js->server_name = g_strdup(name); 275 js->server_name = g_strdup(name);
276 if (!strcmp(name, "Google Talk")) 276 if (!strcmp(name, "Google Talk")) {
277 js->googletalk = TRUE; 277 printf("ADSFADFAFAFADF !!!!\n");
278 js->googletalk = TRUE;
279 }
278 } 280 }
279 281
280 for (child = xmlnode_get_child(query, "feature"); child; 282 for (child = xmlnode_get_child(query, "feature"); child;
281 child = xmlnode_get_next_twin(child)) { 283 child = xmlnode_get_next_twin(child)) {
282 const char *var; 284 const char *var;