cpw.darkrain42.xmpp.avatars: 640e5a85: Whitespace changes
paul at darkrain42.org
paul at darkrain42.org
Mon Jan 26 01:05:40 EST 2009
-----------------------------------------------------------------
Revision: 640e5a85cacdc9f93a93761279c3afecd3986f1f
Ancestor: 934c93bbd5de58043a5697c2ab115d7d6bd4d368
Author: paul at darkrain42.org
Date: 2009-01-26T06:04:01
Branch: im.pidgin.cpw.darkrain42.xmpp.avatars
URL: http://d.pidgin.im/viewmtn/revision/info/640e5a85cacdc9f93a93761279c3afecd3986f1f
Modified files:
libpurple/protocols/jabber/useravatar.c
ChangeLog:
Whitespace changes
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/useravatar.c 3cf99c1926da5e027e40ca29c7f4fd595e9dce0b
+++ libpurple/protocols/jabber/useravatar.c 431889aa33abb2c59e4b9f351d3f3f8463ce1031
@@ -277,7 +277,7 @@ do_buddy_avatar_update_fromurl(PurpleUti
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 @@ do_buddy_avatar_update_data(JabberStream
size_t size;
if(!items)
return;
-
+
item = xmlnode_get_child(items, "item");
if(!item)
return;
@@ -314,17 +314,17 @@ do_buddy_avatar_update_data(JabberStream
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 @@ update_buddy_metadata(JabberStream *js,
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 @@ update_buddy_metadata(JabberStream *js,
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;
More information about the Commits
mailing list