# HG changeset patch # User Stu Tomlinson # Date 1101492836 0 # Node ID 59b1fce24f60aaa5e3658bef75e6a88efc2e4e90 # Parent d082b2a71ee78e7bfbcdb8c035b813f4376d4805 [gaim-migrate @ 11417] There was a glitch in the matrix. Don't crash if the users MSN buddy list is temporarily unavailable (fixes the crash reported in patch 1072279) committer: Tailor Script diff -r d082b2a71ee7 -r 59b1fce24f60 src/protocols/msn/notification.c --- a/src/protocols/msn/notification.c Fri Nov 26 05:21:58 2004 +0000 +++ b/src/protocols/msn/notification.c Fri Nov 26 18:13:56 2004 +0000 @@ -711,6 +711,28 @@ int total_users; session = cmdproc->session; + + if (cmd->param_count == 2) + { + char *buf; + /* + * This can happen if we sent a SYN with an up-to-date + * buddy list revision, but we send 0 to get a full list. + * So, error out. + */ + buf = g_strdup_printf( + _("Your MSN buddy list for %s is temporarily unavailable. " + "Please wait and try again."), + gaim_account_get_username(session->account)); + + gaim_connection_error(gaim_account_get_connection(session->account), + buf); + + g_free(buf); + + return; + } + total_users = atoi(cmd->params[2]); if (total_users == 0)