# HG changeset patch # User Christian Hammond # Date 1081390408 0 # Node ID b0ceb2a9e1221d0d9bd1106761793e2ae05f41d2 # Parent 219e9638e8f39010541b2109c199329ef2e92cf1 [gaim-migrate @ 9364] Tell the user their buddy list is temporarily unavailable, rather than crashing. I believe it to be slightly more friendly behavior. committer: Tailor Script diff -r 219e9638e8f3 -r b0ceb2a9e122 src/protocols/msn/notification.c --- a/src/protocols/msn/notification.c Thu Apr 08 01:23:49 2004 +0000 +++ b/src/protocols/msn/notification.c Thu Apr 08 02:13:28 2004 +0000 @@ -1348,6 +1348,24 @@ if (session->protocol_ver >= 8) { + if (param_count == 2) + { + char buf[256]; + + /* + * 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. + */ + snprintf(buf, sizeof(buf), + _("Your MSN buddy list for %s is temporarily unavailable. " + "Please wait and try again."), + gaim_acocunt_get_username(session->account)); + gaim_connection_error(gc, buf); + + return FALSE; + } + session->total_users = atoi(params[2]); session->total_groups = atoi(params[3]);