diff src/protocols/msn/nexus.c @ 8808:bbd8cdaf0ad5

[gaim-migrate @ 9570] A massive patch by shx to reorganize MSN some more and add command processor support. This allows us to do cool things like produce more detailed error messages. For example, the Invalid Username dialog now shows the username of the invalid user. I modified the aforementioned dialog so it'll look a little nicer looking, and also mention the account this happened on. It also removes the user from your blist, as there's no point to keeping the user on there. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 25 Apr 2004 22:02:06 +0000
parents d0ba2f7b40e7
children 577c76e1442d
line wrap: on
line diff
--- a/src/protocols/msn/nexus.c	Sun Apr 25 17:01:38 2004 +0000
+++ b/src/protocols/msn/nexus.c	Sun Apr 25 22:02:06 2004 +0000
@@ -209,7 +209,7 @@
 	}
 	else if (strstr(buffer, "HTTP/1.1 200 OK"))
 	{
-		char outparams[MSN_BUF_LEN];
+		MsnCmdProc *cmdproc;
 		char *base, *c;
 		char *login_params;
 
@@ -230,9 +230,10 @@
 		}
 #endif
 
+		cmdproc = session->notification_conn->cmdproc;
 		base  = strstr(buffer, "Authentication-Info: ");
 
-		if(base == NULL)
+		if (base == NULL)
 		{
 			gaim_debug(GAIM_DEBUG_ERROR, "msn",
 					   "Authentication information was not found. This did "
@@ -248,11 +249,7 @@
 
 		login_params = g_strndup(base, c - base);
 
-		g_snprintf(outparams, sizeof(outparams),
-			"TWN S %s", login_params);
-
-		msn_servconn_send_command(session->notification_conn, "USR",
-								  outparams);
+		msn_cmdproc_send(cmdproc, "USR", "TWN S %s", login_params);
 
 		g_free(login_params);