Mercurial > pidgin.yaz
diff src/protocols/msn/sync.c @ 10044:86a6d78b070b
[gaim-migrate @ 11003]
this is the msn buddy list sync code from the 1.0.0 tree, also from shx. in
this patch, i changed one instance of "b" to "buddy" to make it compile.
this introduces code to ask the user about discrepances between the local
and server lists on msn.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 19 Sep 2004 03:02:28 +0000 |
parents | 997c28571364 |
children | 92d4a25fd33c |
line wrap: on
line diff
--- a/src/protocols/msn/sync.c Sun Sep 19 02:53:00 2004 +0000 +++ b/src/protocols/msn/sync.c Sun Sep 19 03:02:28 2004 +0000 @@ -110,24 +110,14 @@ lst_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) { MsnSession *session = cmdproc->session; - GaimAccount *account = session->account; - GaimConnection *gc = gaim_account_get_connection(account); char *passport = NULL; const char *friend = NULL; int list_op; MsnUser *user; - passport = cmd->params[0]; - 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 + passport = cmd->params[0]; + friend = gaim_url_decode(cmd->params[1]); + list_op = atoi(cmd->params[2]); user = msn_user_new(session->userlist, passport, friend); @@ -175,15 +165,7 @@ { cmdproc->cbs_table = session->sync->old_cbs_table; - msn_user_set_buddy_icon(session->user, - gaim_account_get_buddy_icon(session->account)); - - msn_change_status(session, MSN_ONLINE); - - gaim_connection_set_state(gc, GAIM_CONNECTED); - session->logged_in = TRUE; - - serv_finish_login(gc); + msn_session_finish_login(session); msn_sync_destroy(session->sync); session->sync = NULL;