diff src/protocols/msn/notification.c @ 7288:ff9127038a5a

[gaim-migrate @ 7869] It doesn't completely work yet, but this is the beginnings of the MSN HTTP port 80 connect method. I don't have it set so it can be enabled, so it's harmless to commit this now, but I want a second set of eyes, and I also want to do other MSN work without dealing with hand-merging patches. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 17 Oct 2003 14:57:59 +0000
parents 448e39ace278
children ab2085024a29
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Fri Oct 17 05:58:16 2003 +0000
+++ b/src/protocols/msn/notification.c	Fri Oct 17 14:57:59 2003 +0000
@@ -1863,6 +1863,9 @@
 	else
 		port = 1863;
 
+	if (session->http_method)
+		port = 80;
+
 	swboard = msn_switchboard_new(session);
 
 	user = msn_user_new(session, params[4], NULL);
@@ -1925,6 +1928,9 @@
 
 		msn_switchboard_set_auth_key(swboard, params[4]);
 
+		if (session->http_method)
+			port = 80;
+
 		if (!msn_switchboard_connect(swboard, host, port)) {
 			gaim_debug(GAIM_DEBUG_ERROR, "msn",
 					   "Unable to connect to switchboard on %s, port %d\n",
@@ -2183,6 +2189,9 @@
 	msn_servconn_set_connect_cb(notification, connect_cb);
 	msn_servconn_set_failed_read_cb(notification, failed_read_cb);
 
+	if (session->http_method)
+		notification->http_data->server_type = "NS";
+
 	if (notification_commands == NULL) {
 		/* Register the command callbacks. */
 		msn_servconn_register_command(notification, "ADD",       add_cmd);