Mercurial > pidgin
changeset 23500:1061a9ad1ddb
disapproval of revision '075bff91d9cbcfd6f59c270802c5bffeb98c3b50'
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 09 Jul 2008 00:27:44 +0000 |
parents | 2d515f8f338e |
children | cab5420c3879 |
files | libpurple/protocols/msn/slp.c |
diffstat | 1 files changed, 9 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/slp.c Sun Jun 22 22:59:50 2008 +0000 +++ b/libpurple/protocols/msn/slp.c Wed Jul 09 00:27:44 2008 +0000 @@ -1067,21 +1067,6 @@ } static void -next_buddy_request(MsnUserList *userlist) -{ - /* Free one window slot */ - userlist->buddy_icon_window++; - -#ifdef MSN_DEBUG_UD - purple_debug_info("msn", "request_user_display(): buddy_icon_window++ yields =%d\n", - userlist->buddy_icon_window); -#endif - - /* Request the next one */ - msn_release_buddy_icon_request(userlist); -} - -static void request_user_display(MsnUser *user) { PurpleAccount *account; @@ -1097,19 +1082,6 @@ obj = msn_user_get_object(user); - /* Changed while in the queue. */ - if (obj == NULL) { - purple_buddy_icons_set_for_user(account, user->passport, NULL, 0, NULL); - next_buddy_request(session->userlist); - return; - } - - /* The user went offline. */ - if (user->status == NULL) { - next_buddy_request(session->userlist); - return; - } - info = msn_object_get_sha1(obj); if (g_ascii_strcasecmp(user->passport, @@ -1139,7 +1111,14 @@ purple_buddy_icons_set_for_user(account, user->passport, g_memdup(data, len), len, info); - next_buddy_request(session->userlist); + /* Free one window slot */ + session->userlist->buddy_icon_window++; + +#ifdef MSN_DEBUG_UD + purple_debug_info("msn", "request_user_display(): buddy_icon_window++ yields =%d\n", + session->userlist->buddy_icon_window); +#endif + + msn_release_buddy_icon_request(session->userlist); } } -