Mercurial > pidgin.yaz
changeset 8613:b0ceb2a9e122
[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 <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 08 Apr 2004 02:13:28 +0000 |
parents | 219e9638e8f3 |
children | 563d47350c7e |
files | src/protocols/msn/notification.c |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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]);