Mercurial > pidgin.yaz
changeset 9225:554ef91db2dd
[gaim-migrate @ 10021]
Another fix, like the previous time, and some #if 0'd debug info. The MSN
servers are doing something they're not supposed to do, it seems. We're
investigating.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 20:45:53 +0000 |
parents | 3e0cd1c6ddc7 |
children | 7a00289f2ef1 |
files | src/protocols/msn/notification.c src/protocols/msn/sync.c src/protocols/msn/userlist.c |
diffstat | 3 files changed, 29 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Sun Jun 06 20:31:20 2004 +0000 +++ b/src/protocols/msn/notification.c Sun Jun 06 20:45:53 2004 +0000 @@ -317,6 +317,8 @@ if (user == NULL) { + gaim_debug_info("msn", "Creating new user. '%s' was not found.\n", + passport); user = msn_user_new(session->userlist, passport, friendly); msn_userlist_add_user(session->userlist, user); }
--- a/src/protocols/msn/sync.c Sun Jun 06 20:31:20 2004 +0000 +++ b/src/protocols/msn/sync.c Sun Jun 06 20:45:53 2004 +0000 @@ -121,6 +121,14 @@ friend = gaim_url_decode(cmd->params[1]); list_op = atoi(cmd->params[2]); +#if 0 + gaim_debug_misc("msn", "Got list op = %d\n", list_op); + gaim_debug_misc("msn", "FL = %d\n", (list_op & MSN_LIST_FL_OP)); + gaim_debug_misc("msn", "AL = %d\n", (list_op & MSN_LIST_AL_OP)); + gaim_debug_misc("msn", "BL = %d\n", (list_op & MSN_LIST_BL_OP)); + gaim_debug_misc("msn", "RL = %d\n", (list_op & MSN_LIST_RL_OP)); +#endif + user = msn_user_new(session->userlist, passport, friend); msn_userlist_add_user(session->userlist, user);
--- a/src/protocols/msn/userlist.c Sun Jun 06 20:31:20 2004 +0000 +++ b/src/protocols/msn/userlist.c Sun Jun 06 20:45:53 2004 +0000 @@ -246,6 +246,14 @@ "%s has added you to his or her contact list.\n", passport); +#if 0 + gaim_debug_misc("msn", "User's list op = %d\n", user->list_op); + gaim_debug_misc("msn", "FL = %d\n", (user->list_op & MSN_LIST_FL_OP)); + gaim_debug_misc("msn", "AL = %d\n", (user->list_op & MSN_LIST_AL_OP)); + gaim_debug_misc("msn", "BL = %d\n", (user->list_op & MSN_LIST_BL_OP)); + gaim_debug_misc("msn", "RL = %d\n", (user->list_op & MSN_LIST_RL_OP)); +#endif + if (!(user->list_op & (MSN_LIST_AL_OP | MSN_LIST_BL_OP | MSN_LIST_FL_OP))) { @@ -367,8 +375,11 @@ /* These are users who have us on their contact list. */ /* TODO: what does store name is when this happens? */ - if (!(list_op & (MSN_LIST_AL_OP | MSN_LIST_BL_OP))) + if (!(list_op & (MSN_LIST_AL_OP | MSN_LIST_BL_OP | + MSN_LIST_FL_OP))) + { got_new_entry(gc, passport, store); + } } user->list_op = list_op; @@ -413,6 +424,8 @@ void msn_userlist_add_user(MsnUserList *userlist, MsnUser *user) { + gaim_debug_misc("msn", "[%p] Adding %s (%p)\n", + userlist, user->passport, user); userlist->users = g_list_append(userlist->users, user); } @@ -435,6 +448,11 @@ g_return_val_if_fail(user->passport != NULL, NULL); +#if 0 + gaim_debug_misc("msn", "[%p] Comparing '%s' and '%s' (%p)\n", + userlist, passport, user->passport, user); +#endif + if (!strcmp(passport, user->passport)) return user; }