diff libpurple/protocols/msn/nexus.c @ 20471:530a92d50c5e

Misc cleanups, better error handling, and print the Address Book received from the server in a human readable way.
author Carlos Silva <typ0@pidgin.im>
date Tue, 17 Jul 2007 00:35:50 +0000
parents 4403cecc7cd6
children 9a2a4a0c0003
line wrap: on
line diff
--- a/libpurple/protocols/msn/nexus.c	Mon Jul 16 23:06:21 2007 +0000
+++ b/libpurple/protocols/msn/nexus.c	Tue Jul 17 00:35:50 2007 +0000
@@ -161,7 +161,7 @@
 	purple_debug_misc("msn", "TWN Server Reply: {%s}\n", soapconn->read_buf);
 
 	/*reply OK, we should process the SOAP body*/
-	purple_debug_info("MaYuan","Windows Live ID Reply OK!\n");
+	purple_debug_info("MSNP14","Windows Live ID Reply OK!\n");
 
 	//TODO: we should parse it using XML
 #ifdef NEXUS_LOGIN_TWN
@@ -205,7 +205,7 @@
 	cert_str = g_strdup_printf("t=%s&p=%s",msn_twn_t,msn_twn_p);
 	msn_got_login_params(session, cert_str);
 
-	purple_debug_info("MaYuan","close nexus connection! \n");
+	purple_debug_info("MSNP14","close nexus connection! \n");
 	g_free(cert_str);
 	g_free(login_params);
 	msn_nexus_destroy(nexus);
@@ -242,7 +242,7 @@
 	char *rst1_str,*rst2_str,*rst3_str;
 #endif
 
-	purple_debug_info("MaYuan","starting Windows Live ID authentication\n");
+	purple_debug_info("MSNP14","starting Windows Live ID authentication\n");
 
 	soapconn = data;
 	g_return_if_fail(soapconn != NULL);
@@ -277,7 +277,7 @@
 	 * for when windows g_strdup_printf() implementation get NULL point,It crashed!
 	 */
 	if(!(lc && id && tw && ru && ct && kpp && kv && ver && tpf)){
-		purple_debug_error("MaYuan","WLM Authenticate Key Error!\n");
+		purple_debug_error("MSNP14","WLM Authenticate Key Error!\n");
 		msn_session_set_error(session, MSN_ERROR_AUTH, _("Windows Live ID authentication Failed"));
 		g_free(username);
 		g_free(password);
@@ -467,7 +467,7 @@
 msn_nexus_connect(MsnNexus *nexus)
 {
 	/*  Authenticate via Windows Live ID. */
-	purple_debug_info("MaYuan","msn_nexus_connect...\n");
+	purple_debug_info("MSNP14","msn_nexus_connect...\n");
 	msn_soap_init(nexus->soapconn,MSN_TWN_SERVER,1,nexus_login_connect_cb,nexus_login_error_cb);
 	msn_soap_connect(nexus->soapconn);
 }