From: Luke S. <lsc...@us...> - 2004-08-28 02:42:33
|
Update of /cvsroot/gaim/gaim/src/protocols/msn In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17368/src/protocols/msn Modified Files: notification.c Log Message: (22:23:18) shx: LSchiere: now one that reports correctly when the server buddy list is full Index: notification.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/msn/notification.c,v retrieving revision 1.111 retrieving revision 1.112 diff -u -d -p -r1.111 -r1.112 --- notification.c 25 Aug 2004 01:35:24 -0000 1.111 +++ notification.c 28 Aug 2004 02:42:08 -0000 1.112 @@ -342,7 +342,7 @@ add_error(MsnCmdProc *cmdproc, MsnTransa GaimAccount *account; GaimConnection *gc; const char *list, *passport; - char *reason; + char *reason = NULL; char *msg = NULL; char **params; @@ -363,16 +363,35 @@ add_error(MsnCmdProc *cmdproc, MsnTransa 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) |