Mercurial > pidgin.yaz
changeset 9897:62ccc10573d6
[gaim-migrate @ 10786]
(22:23:18) shx: LSchiere: now one that reports correctly when the server
buddy list is full
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 28 Aug 2004 02:42:08 +0000 |
parents | a806e5150eca |
children | 8974a8544279 |
files | src/protocols/msn/notification.c |
diffstat | 1 files changed, 28 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/notification.c Sat Aug 28 02:25:16 2004 +0000 +++ b/src/protocols/msn/notification.c Sat Aug 28 02:42:08 2004 +0000 @@ -342,7 +342,7 @@ GaimAccount *account; GaimConnection *gc; const char *list, *passport; - char *reason; + char *reason = NULL; char *msg = NULL; char **params; @@ -363,16 +363,35 @@ if (!strcmp(list, "FL")) { - reason = g_strdup_printf("%s is not a valid passport account.\n\n" - "This user will be automatically removed " - "from your %s account's buddy list, so this " - "won't appear again.", - passport, gaim_account_get_username(account)); + if (error == 208) + { + reason = g_strdup_printf("%s is not a valid passport account.\n\n" + "This user will be automatically removed " + "from your %s account's buddy list, " + "this won't appear again.", + passport, + gaim_account_get_username(account)); + } + else if (error == 210) + { + reason = g_strdup_printf("%s's buddy list is full.\n\n" + "%s could not be added.", + gaim_account_get_username(account), + passport); + } } - else + + if (reason == NULL) { - reason = g_strdup_printf("%s is not a valid passport account.", - passport); + if (error == 208) + { + reason = g_strdup_printf("%s is not a valid passport account.", + passport); + } + else + { + reason = g_strdup_printf("Unknown error."); + } } if (msg != NULL)