Mercurial > pidgin
comparison libpurple/protocols/msn/notification.c @ 17349:59e09ff3490d
Handle new accounts with no buddies better - finish login when the first
group is received, this allows us to handle the GTC, BLP & PRP commands for
new accounts.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 27 May 2007 12:39:24 +0000 |
parents | 513ee58e7305 |
children | 210fc36306e4 4403cecc7cd6 |
comparison
equal
deleted
inserted
replaced
17348:c8891ebd48db | 17349:59e09ff3490d |
---|---|
899 | 899 |
900 static void | 900 static void |
901 syn_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) | 901 syn_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd) |
902 { | 902 { |
903 MsnSession *session; | 903 MsnSession *session; |
904 MsnSync *sync; | |
904 int total_users; | 905 int total_users; |
905 | 906 |
906 session = cmdproc->session; | 907 session = cmdproc->session; |
907 | 908 |
908 if (cmd->param_count == 2) | 909 if (cmd->param_count == 2) |
917 return; | 918 return; |
918 } | 919 } |
919 | 920 |
920 total_users = atoi(cmd->params[2]); | 921 total_users = atoi(cmd->params[2]); |
921 | 922 |
922 if (total_users == 0) | 923 sync = msn_sync_new(session); |
923 { | 924 sync->total_users = total_users; |
924 msn_session_finish_login(session); | 925 sync->old_cbs_table = cmdproc->cbs_table; |
925 } | 926 |
926 else | 927 session->sync = sync; |
927 { | 928 cmdproc->cbs_table = sync->cbs_table; |
928 /* syn_table */ | |
929 MsnSync *sync; | |
930 | |
931 sync = msn_sync_new(session); | |
932 sync->total_users = total_users; | |
933 sync->old_cbs_table = cmdproc->cbs_table; | |
934 | |
935 session->sync = sync; | |
936 cmdproc->cbs_table = sync->cbs_table; | |
937 } | |
938 } | 929 } |
939 | 930 |
940 /************************************************************************** | 931 /************************************************************************** |
941 * Misc commands | 932 * Misc commands |
942 **************************************************************************/ | 933 **************************************************************************/ |