diff src/protocols/msn/notification.c @ 5334:bbf2141d30d0

[gaim-migrate @ 5709] Ignore error 225, "User not in group." The users don't care. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 08 May 2003 06:22:49 +0000
parents bbbf616bd924
children 620d05932f00
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Thu May 08 06:14:16 2003 +0000
+++ b/src/protocols/msn/notification.c	Thu May 08 06:22:49 2003 +0000
@@ -112,10 +112,24 @@
 {
 	char buf[MSN_BUF_LEN];
 
-	g_snprintf(buf, sizeof(buf), "MSN Error: %s\n",
-			   (isdigit(*command)
-				? msn_error_get_text(atoi(command))
-				: "Unable to parse message."));
+	if (isdigit(*command)) {
+		int errnum = atoi(command);
+
+		if (errnum == 225) {
+			/*
+			 * Ignore this. It happens as a result of moving a buddy from
+			 * one group that isn't on the server to another that is.
+			 * The user doesn't care if the old group was there or not.
+			 */
+			return TRUE;
+		}
+
+		g_snprintf(buf, sizeof(buf), "MSN Error: %s\n",
+				   msn_error_get_text(errnum));
+	}
+	else {
+		g_snprintf(buf, sizeof(buf), "MSN Error: Unable to parse message\n");
+	}
 
 	do_error_dialog(buf, NULL, GAIM_ERROR);