changeset 8045:cd3a2cef5112

[gaim-migrate @ 8729] Yahoo works. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 10 Jan 2004 03:26:09 +0000
parents 34b086e2619d
children fa6395637e2c
files ChangeLog src/protocols/yahoo/yahoo.c src/protocols/yahoo/yahoo.h
diffstat 3 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Jan 10 02:30:31 2004 +0000
+++ b/ChangeLog	Sat Jan 10 03:26:09 2004 +0000
@@ -1,8 +1,10 @@
 Gaim: The Pimpin' Penguin IM Clone that's good for the soul!
 
-version 0.75cvs :
+version 0.75 (01/09/2004):
+	* New Yahoo! auth method
 	* Yahoo! file transfer (Tim Ringenbach)
 	* Yahoo! chat joining fixes (Tim Ringenbach)
+	* Persons can auto-expand when hovering your mouse over it
 	* Improved i18n support for MSN email notification (Felipe Contreras)
 	* Jabber SASL PLAIN support
 	* Improved Jabber MUC (Chat) support
--- a/src/protocols/yahoo/yahoo.c	Sat Jan 10 02:30:31 2004 +0000
+++ b/src/protocols/yahoo/yahoo.c	Sat Jan 10 03:26:09 2004 +0000
@@ -1850,7 +1850,7 @@
 	}
 
 	if (source < 0) {
-		gaim_connection_error(gc, _("Unable to connect."));
+		gaim_connection_error(gc, _("Unable to connect"));
 		return;
 	}
 
@@ -1881,7 +1881,7 @@
 	}
 
 	if (source < 0) {
-		gaim_connection_error(gc, _("Unable to connect."));
+		gaim_connection_error(gc, _("Unable to connect"));
 		return;
 	}
 
@@ -1909,7 +1909,6 @@
 	int len, o = 0;
 
 	len = read(source, buf, sizeof(buf));
-
 	if (len <= 0  || strncmp(buf, "HTTP/1.0 302", strlen("HTTP/1.0 302"))) {
 		gaim_connection_error(gc, _("Unable to read"));
 		return;
@@ -1931,9 +1930,8 @@
 	yd->auth = g_strdup(buf2);
 	gaim_input_remove(gc->inpa);
 	close(source);
-
 	/* Now we have our cookies to login with.  I'll go get the milk. */
-	if (gaim_proxy_connect(account, "wcs1.msg.sc5.yahoo.com",
+	if (gaim_proxy_connect(account, "wcs2.msg.dcn.yahoo.com",
 			       gaim_account_get_int(account, "port", YAHOO_PAGER_PORT),
 			       yahoo_got_web_connected, gc) != 0) {
 		gaim_connection_error(gc, _("Connection problem"));
@@ -1946,7 +1944,7 @@
 	GaimConnection *gc = data;
 	struct yahoo_data *yd = gc->proto_data;
 	if (source < 0) {
-		gaim_connection_error(gc, _("Unable to connect."));
+		gaim_connection_error(gc, _("Unable to connect"));
 		return;
 	}
 	write(source, yd->auth, strlen(yd->auth));
@@ -2042,7 +2040,6 @@
 	url = g_string_append(url, "&.hash=1&.md5=1 HTTP/1.1\r\n"
 			      "Host: login.yahoo.com\r\n\r\n");
 	g_hash_table_destroy(hash);
-	
 	yd->auth = g_string_free(url, FALSE);
 	if (gaim_proxy_connect(account, "login.yahoo.com", 80, yahoo_got_cookies, gc) != 0) {
 		gaim_connection_error(gc, _("Connection problem"));
@@ -2705,10 +2702,9 @@
 
 	if (!yd->logged_in)
 		return;
-	
-	/* It seems to work better without this */
-	/* if (gc->account->perm_deny != 4)     */
-	/*	return;                         */
+
+	if (gc->account->perm_deny != 4)
+		return;
 
 	if (!who || who[0] == '\0')
 		return;
--- a/src/protocols/yahoo/yahoo.h	Sat Jan 10 02:30:31 2004 +0000
+++ b/src/protocols/yahoo/yahoo.h	Sat Jan 10 03:26:09 2004 +0000
@@ -25,6 +25,8 @@
 
 #include "prpl.h"
 
+#define YAHOO_WEBMESSENGER
+
 #define YAHOO_PAGER_HOST "scs.msg.yahoo.com"
 #define YAHOO_PAGER_PORT 5050
 #define YAHOO_PROFILE_URL "http://profiles.yahoo.com/"