# HG changeset patch # User Luke Schierer # Date 1093660928 0 # Node ID 62ccc10573d6a797fb31b698e3aafed1af9c1b25 # Parent a806e5150ecaf4596a9e1c25be03d2fcc3bb1620 [gaim-migrate @ 10786] (22:23:18) shx: LSchiere: now one that reports correctly when the server buddy list is full committer: Tailor Script diff -r a806e5150eca -r 62ccc10573d6 src/protocols/msn/notification.c --- 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)