changeset 23952:dffd9abace4f

Add MSN error code 927 for suspended passports, and a little bit of indent cleanup. Note: Add translation after string-freeze. References #6723.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 30 Aug 2008 20:21:04 +0000
parents 28c68cff8c8a
children 303cee892d2d
files libpurple/protocols/msn/error.c
diffstat 1 files changed, 27 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/error.c	Sat Aug 30 07:53:32 2008 +0000
+++ b/libpurple/protocols/msn/error.c	Sat Aug 30 20:21:04 2008 +0000
@@ -33,24 +33,24 @@
 	switch (type) {
 		case 0:
 			g_snprintf(msg, sizeof(msg),
-					   _("Unable to parse message"));
+			           _("Unable to parse message"));
 			*debug = TRUE;
 			break;
 		case 200:
 			g_snprintf(msg, sizeof(msg),
-					   _("Syntax Error (probably a client bug)"));
+			           _("Syntax Error (probably a client bug)"));
 			*debug = TRUE;
 			break;
 		case 201:
 			g_snprintf(msg, sizeof(msg),
-					   _("Invalid email address"));
+			           _("Invalid email address"));
 			break;
 		case 205:
 			g_snprintf(msg, sizeof(msg), _("User does not exist"));
 			break;
 		case 206:
 			g_snprintf(msg, sizeof(msg),
-					   _("Fully qualified domain name missing"));
+			           _("Fully qualified domain name missing"));
 			break;
 		case 207:
 			g_snprintf(msg, sizeof(msg), _("Already logged in"));
@@ -100,8 +100,8 @@
 			break;
 		case 231:
 			g_snprintf(msg, sizeof(msg),
-					   _("Tried to add a user to a group "
-						 "that doesn't exist"));
+			           _("Tried to add a user to a group "
+			             "that doesn't exist"));
 			break;
 		case 280:
 			g_snprintf(msg, sizeof(msg), _("Switchboard failed"));
@@ -125,7 +125,8 @@
 			break;
 
 		case 500:
-			g_snprintf(msg, sizeof(msg), _("Service temporarily unavailable"));
+			g_snprintf(msg, sizeof(msg),
+			           _("Service temporarily unavailable"));
 			break;
 		case 501:
 			g_snprintf(msg, sizeof(msg), _("Database server error"));
@@ -144,7 +145,8 @@
 			*debug = TRUE;
 			break;
 		case 540:
-			g_snprintf(msg, sizeof(msg), _("Wrong CHL value sent to server"));
+			g_snprintf(msg, sizeof(msg),
+			           _("Wrong CHL value sent to server"));
 			*debug = TRUE;
 			break;
 
@@ -155,7 +157,8 @@
 			g_snprintf(msg, sizeof(msg), _("Server unavailable"));
 			break;
 		case 602:
-			g_snprintf(msg, sizeof(msg), _("Peer notification server down"));
+			g_snprintf(msg, sizeof(msg),
+			           _("Peer notification server down"));
 			*debug = TRUE;
 			break;
 		case 603:
@@ -171,12 +174,14 @@
 			break;
 
 		case 707:
-			g_snprintf(msg, sizeof(msg), _("Error creating connection"));
+			g_snprintf(msg, sizeof(msg),
+			           _("Error creating connection"));
 			*debug = TRUE;
 			break;
 		case 710:
 			g_snprintf(msg, sizeof(msg),
-					   _("CVR parameters are either unknown or not allowed"));
+			           _("CVR parameters are either unknown "
+			             "or not allowed"));
 			*debug = TRUE;
 			break;
 		case 711:
@@ -206,7 +211,7 @@
 
 		case 800:
 			g_snprintf(msg, sizeof(msg),
-					   _("Friendly name changes too rapidly"));
+			           _("Friendly name changes too rapidly"));
 			break;
 
 		case 910:
@@ -234,11 +239,15 @@
 			break;
 		case 923:
 			g_snprintf(msg, sizeof(msg),
-					   _("Kids Passport without parental consent"));
+			           _("Kids Passport without parental consent"));
 			break;
 		case 924:
 			g_snprintf(msg, sizeof(msg),
-					   _("Passport account not yet verified"));
+			           _("Passport account not yet verified"));
+			break;
+		case 927:
+			g_snprintf(msg, sizeof(msg),
+			           ("Passport account suspended"));
 			break;
 		case 928:
 			g_snprintf(msg, sizeof(msg), _("Bad ticket"));
@@ -246,7 +255,8 @@
 			break;
 
 		default:
-			g_snprintf(msg, sizeof(msg), _("Unknown Error Code %d"), type);
+			g_snprintf(msg, sizeof(msg),
+			           _("Unknown Error Code %d"), type);
 			*debug = TRUE;
 			break;
 	}
@@ -261,9 +271,10 @@
 	gboolean debug;
 
 	g_snprintf(buf, sizeof(buf), _("MSN Error: %s\n"),
-			   msn_error_get_text(type, &debug));
+	           msn_error_get_text(type, &debug));
 	if (debug)
 		purple_debug_warning("msn", "error %d: %s\n", type, buf);
 	else
 		purple_notify_error(session->account->gc, NULL, buf, NULL);
 }
+