libpurple/protocols/msn/notification.c

changeset 31560
626e5d35fa5e
parent 31436
1f56689dc398
child 31561
180f569cbb7d
--- a/libpurple/protocols/msn/notification.c	Sun Mar 13 18:04:52 2011 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun Mar 13 23:40:42 2011 +0000
@@ -1186,13 +1186,18 @@
 
 	id = xmlnode_get_attrib(msg, "id");
 
-	if (id && !strcmp(id, "407")) {
+	if (id && strcmp(id, "1")) {
 		PurpleConversation *conv
 			= purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
 			                                        who, gc->account);
 		if (conv != NULL) {
-			purple_conversation_write(conv, NULL,
-			                          _("Mobile message was not sent because it was too long."),
+			const char *error;
+			if (!strcmp(id, "407"))
+				error = _("Mobile message was not sent because it was too long.");
+			else
+				error = _("Mobile message was not sent because an unknown error occurred.");
+
+			purple_conversation_write(conv, NULL, error,
 			                          PURPLE_MESSAGE_ERROR, time(NULL));
 
 			if ((id = xmlnode_get_attrib(payloadNode, "id")) != NULL) {

mercurial