From: <rl...@us...> - 2006-04-25 17:19:53
|
Revision: 16094 Author: rlaager Date: 2006-04-25 10:19:45 -0700 (Tue, 25 Apr 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16094&view=rev Log Message: ----------- SF Patch #1462332 from cbanal "When updating an avatar and the accounts vcard / info is empty. The resulting vCard xml that is sent does not contain the proper attributes. This causes the vCard update to be ignored by the jabber server." I'm not 100% positive about this, but it seems right. Modified Paths: -------------- trunk/src/protocols/jabber/buddy.c Modified: trunk/src/protocols/jabber/buddy.c =================================================================== --- trunk/src/protocols/jabber/buddy.c 2006-04-25 17:15:00 UTC (rev 16093) +++ trunk/src/protocols/jabber/buddy.c 2006-04-25 17:19:45 UTC (rev 16094) @@ -362,6 +362,7 @@ JabberStream *js = gc->proto_data; xmlnode *vc_node; char *avatar_file = NULL; + struct tag_attr *tag_attr; if(js->avatar_hash) g_free(js->avatar_hash); @@ -375,6 +376,8 @@ if(!vc_node && avatar_file) { vc_node = xmlnode_new("vCard"); + for(tag_attr = vcard_tag_attr_list; tag_attr->attr != NULL; ++tag_attr) + xmlnode_set_attrib(vc_node, tag_attr->attr, tag_attr->value); } if(vc_node) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |