comparison libpurple/protocols/oscar/oscar.c @ 20244:d00e53fd9e88

applied changes from 1af4cc5be54c6712945771f62fb95bd07f4a6104 through b23d43806fbfeabc5007c65090195a3aa6c0a4d9
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:58:42 +0000
parents 72d7a692b1ac
children 96a6a9eef15b 02df6998b466
comparison
equal deleted inserted replaced
20243:5440eed4ec7e 20244:d00e53fd9e88
1871 b = purple_find_buddy(account, info->sn); 1871 b = purple_find_buddy(account, info->sn);
1872 if (b != NULL) 1872 if (b != NULL)
1873 saved_b16 = purple_buddy_icons_get_checksum_for_user(b); 1873 saved_b16 = purple_buddy_icons_get_checksum_for_user(b);
1874 1874
1875 if (!b16 || !saved_b16 || strcmp(b16, saved_b16)) { 1875 if (!b16 || !saved_b16 || strcmp(b16, saved_b16)) {
1876 /* Invalidate the old icon for this user */
1877 purple_buddy_icons_set_for_user(account, info->sn, NULL, 0, NULL);
1878
1879 /* Fetch the new icon (if we're not already doing so) */
1876 if (g_slist_find_custom(od->requesticon, info->sn, 1880 if (g_slist_find_custom(od->requesticon, info->sn,
1877 (GCompareFunc)aim_sncmp) == NULL) 1881 (GCompareFunc)aim_sncmp) == NULL)
1878 { 1882 {
1879 od->requesticon = g_slist_prepend(od->requesticon, 1883 od->requesticon = g_slist_prepend(od->requesticon,
1880 g_strdup(purple_normalize(account, info->sn))); 1884 g_strdup(purple_normalize(account, info->sn)));