# HG changeset patch # User Richard Laager # Date 1177463941 0 # Node ID d4c79390d42407038e09ea81bac7a831eb680e42 # Parent 414b9c9405fddb3eb53ff3145c5f72051e920fbe There's no need to actually lookup the icon now, as the core ensures the checksum gets deleted if the file disappears. diff -r 414b9c9405fd -r d4c79390d424 libpurple/protocols/msn/slp.c --- 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);