changeset 26810:55736bd691e2

re-enable something that qulogic wrote but commented out because of a previous string freeze, makes us display the textual ADL error if possible References #8988
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 03 May 2009 22:59:02 +0000
parents 8d47c0d594dc
children c791a82b5bb5
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Sun May 03 20:18:23 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun May 03 22:59:02 2009 +0000
@@ -844,10 +844,10 @@
 	MsnSession *session;
 	PurpleAccount *account;
 	PurpleConnection *gc;
-	/*char *adl = g_strndup(payload, len);*/
-	char *reason = g_strdup_printf(_("Unknown error (%d)"),
-		GPOINTER_TO_INT(cmd->payload_cbdata)/*, adl*/);
-	/*g_free(adl);*/
+	char *adl = g_strndup(payload, len);
+	char *reason = g_strdup_printf(_("Unknown error (%d): %s"),
+		GPOINTER_TO_INT(cmd->payload_cbdata), adl);
+	g_free(adl);
 
 	session = cmdproc->session;
 	account = session->account;