# HG changeset patch # User Paul Aurich # Date 1232949841 0 # Node ID 5313cf16e1e243fb96ca6526173651933d7782ef # Parent c0a27a44ebd61b3c4fbf3524bb72d01a102b6d2c Whitespace changes diff -r c0a27a44ebd6 -r 5313cf16e1e2 libpurple/protocols/jabber/useravatar.c --- a/libpurple/protocols/jabber/useravatar.c Mon Jan 26 06:02:07 2009 +0000 +++ b/libpurple/protocols/jabber/useravatar.c Mon Jan 26 06:04:01 2009 +0000 @@ -277,7 +277,7 @@ error_message); goto out; } - + purple_buddy_icons_set_for_user(purple_connection_get_account(info->js->gc), info->from, (void*)url_text, len, info->id); out: @@ -296,7 +296,7 @@ size_t size; if(!items) return; - + item = xmlnode_get_child(items, "item"); if(!item) return; @@ -314,17 +314,17 @@ checksum = xmlnode_get_attrib(item,"id"); if(!checksum) return; - + b64data = xmlnode_get_data(data); if(!b64data) return; - + img = purple_base64_decode(b64data, &size); if(!img) { g_free(b64data); return; } - + purple_buddy_icons_set_for_user(purple_connection_get_account(js->gc), from, img, size, checksum); g_free(b64data); } @@ -337,7 +337,7 @@ xmlnode *item, *metadata; if(!buddy) return; - + checksum = purple_buddy_icons_get_checksum_for_user(buddy); item = xmlnode_get_child(items,"item"); metadata = xmlnode_get_child(item, "metadata"); @@ -364,7 +364,7 @@ if(info->type == XMLNODE_TYPE_TAG && !strcmp(info->name,"info")) { const char *type = xmlnode_get_attrib(info,"type"); const char *id = xmlnode_get_attrib(info,"id"); - + if(checksum && id && !strcmp(id, checksum)) { /* we already have that avatar, so we don't have to do anything */ goodinfo = NULL;