changeset 2951:b74f4f7165a1

[gaim-migrate @ 2964] Here, Yahoo should work again. Thanks for the quick fix, Sean. We should probably change some things in a bit. I'm tired of people complaining ;-) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 07 Feb 2002 00:13:43 +0000
parents b5033087c748
children 7a32dca869a8
files ChangeLog src/protocols/yahoo/yahoo.c
diffstat 2 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Feb 02 23:57:15 2002 +0000
+++ b/ChangeLog	Thu Feb 07 00:13:43 2002 +0000
@@ -7,6 +7,7 @@
 	  for reminding me of this, Manish Singh)
 	* Updated Simplified Chinese Translation (Thanks Rocky S. Lee)
 	* Updated German Translation (Thanks Karsten Weiss)
+	* Yahoo! Messenger works again
 
 version 0.51 (01/24/2002):
 	* Arrow buttons in log viewer and some other dialogs
--- a/src/protocols/yahoo/yahoo.c	Sat Feb 02 23:57:15 2002 +0000
+++ b/src/protocols/yahoo/yahoo.c	Thu Feb 07 00:13:43 2002 +0000
@@ -53,7 +53,7 @@
 #define USEROPT_MAIL 0
 
 #define USEROPT_PAGERHOST 3
-#define YAHOO_PAGER_HOST "scs.yahoo.com"
+#define YAHOO_PAGER_HOST "cs.yahoo.com"
 #define USEROPT_PAGERPORT 4
 #define YAHOO_PAGER_PORT 5050
 
@@ -405,6 +405,12 @@
 			break;
 		case 60: /* no clue */
 			 break;
+		case 16: /* Maybe this does more.  Maybe it doesn't. */
+			do_error_dialog("This version of the Yahoo! Messenger plugin is no longer"
+					"being supported.  The latest version of Gaim is available"
+					"at " WEBSITE ".\n\nYou may be disconnected shortly.",
+					"Gaim -- Yahoo! Error");
+			break;
 		default:
 			debug_printf("unknown status key %d\n", pair->key);
 			break;
@@ -712,7 +718,16 @@
 	yd->fd = -1;
 	yd->hash = g_hash_table_new(g_str_hash, g_str_equal);
 
-	if (proxy_connect(user->proto_opt[USEROPT_PAGERHOST][0] ?
+	if (!g_strncasecmp(user->proto_opt[USEROPT_PAGERHOST], "scs.yahoo.com", strlen("scs.yahoo.com"))) {
+		/* As of this morning, Yahoo is no longer supporting its server at scs.yahoo.com
+		 * I don't like to edit the preferences in a prpl, but we'll keep this here
+		 * for a while until everybody's happy again. -5 Feb 2002*/
+		debug_printf("Setting new Yahoo! server.\n");
+		g_snprintf(user->proto_opt[USEROPT_PAGERHOST], strlen("cs.yahoo.com") + 1, "cs.yahoo.com");
+		save_prefs();
+	}
+	    
+       	if (proxy_connect(user->proto_opt[USEROPT_PAGERHOST][0] ?
 				user->proto_opt[USEROPT_PAGERHOST] : YAHOO_PAGER_HOST,
 			   user->proto_opt[USEROPT_PAGERPORT][0] ?
 				atoi(user->proto_opt[USEROPT_PAGERPORT]) : YAHOO_PAGER_PORT,