diff libpurple/buddyicon.c @ 22025:6f452e8d13a2

If the cached buddy icon can't be loaded, delete the preferences which point to it. Among other things, this fixes OSCAR buddy icon retrieval when the cache has been removed - since previously the icon hash was kept around and was used to determine that (so far as the prpl could tell) no icon retrieval was needed, libpurple would never have an icon for the contact.
author Evan Schoenberg <evan.s@dreskin.net>
date Mon, 07 Jan 2008 00:32:26 +0000
parents f314129eaaf5
children e8cb4df7b60a
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Sun Jan 06 20:59:02 2008 +0000
+++ b/libpurple/buddyicon.c	Mon Jan 07 00:32:26 2008 +0000
@@ -614,6 +614,10 @@
 				checksum = purple_blist_node_get_string((PurpleBlistNode*)b, "icon_checksum");
 				purple_buddy_icon_set_data(icon, data, len, checksum);
 			}
+			else
+			{
+				delete_buddy_icon_settings((PurpleBlistNode*)b, "buddy_icon");
+			}
 			g_free(path);
 		}