Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/disco.c @ 15523: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 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c Sat Feb 03 21:16:07 2007 +0000 +++ b/libpurple/protocols/jabber/disco.c Sat Feb 03 23:32:43 2007 +0000 @@ -257,7 +257,7 @@ return; } - for (child = xmlnode_get_child(query, "category"); child; + for (child = xmlnode_get_child(query, "identity"); child; child = xmlnode_get_next_twin(child)) { const char *category, *type, *name; category = xmlnode_get_attrib(child, "category"); @@ -273,8 +273,10 @@ g_free(js->server_name); js->server_name = g_strdup(name); - if (!strcmp(name, "Google Talk")) - js->googletalk = TRUE; + if (!strcmp(name, "Google Talk")) { + printf("ADSFADFAFAFADF !!!!\n"); + js->googletalk = TRUE; + } } for (child = xmlnode_get_child(query, "feature"); child;