changeset 16388:d4c79390d424

There's no need to actually lookup the icon now, as the core ensures the checksum gets deleted if the file disappears.
author Richard Laager <rlaager@wiktel.com>
date Wed, 25 Apr 2007 01:19:01 +0000
parents 414b9c9405fd
children 493ca924c199
files libpurple/protocols/msn/slp.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slp.c	Wed Apr 25 00:57:53 2007 +0000
+++ b/libpurple/protocols/msn/slp.c	Wed Apr 25 01:19:01 2007 +0000
@@ -878,7 +878,7 @@
 
 	/* If the old and new checksums are the same, and the file actually exists,
 	 * then return TRUE */
-	if (old != NULL && !strcmp(old, new) && (purple_buddy_icons_find(account, purple_buddy_get_name(buddy)) != NULL))
+	if (old != NULL && !strcmp(old, new))
 		return TRUE;
 
 	return FALSE;
@@ -1092,7 +1092,6 @@
 				g_file_get_contents(filename, &data, &len, NULL);
 		}
 
-		/* TODO: I think we need better buddy icon core functions. */
 		purple_buddy_icons_set_for_user(account, user->passport, (void *)data, len, info);
 		g_free(data);