changeset 7883:30ed1fc892aa

[gaim-migrate @ 8537] " This changes the server define for topic complience, and changes the setting for them." --Tim Ringenbach (marv_sf) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 15 Dec 2003 01:47:29 +0000
parents b4c2f92d4d24
children 71354edf06d7
files src/protocols/yahoo/yahoo.c src/protocols/yahoo/yahoo.h
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Mon Dec 15 01:04:51 2003 +0000
+++ b/src/protocols/yahoo/yahoo.c	Mon Dec 15 01:47:29 2003 +0000
@@ -2048,6 +2048,18 @@
 
 #endif /* YAHOO_WEBMESSENGER */
 
+#ifndef YAHOO_WEBMESSENGER
+static void yahoo_server_check(GaimAccount *account)
+{
+	const char *server;
+
+	server = gaim_account_get_string(account, "server", YAHOO_PAGER_HOST);
+
+	if (strcmp(server, "scs.yahoo.com") == 0)
+		gaim_account_set_string(account, "server", YAHOO_PAGER_HOST);
+}
+#endif
+
 static void yahoo_login(GaimAccount *account) {
 	GaimConnection *gc = gaim_account_get_connection(account);
 	struct yahoo_data *yd = gc->proto_data = g_new0(struct yahoo_data, 1);
@@ -2063,6 +2075,8 @@
 
 #ifndef YAHOO_WEBMESSENGER
 
+	yahoo_server_check(account);
+
 	if (gaim_proxy_connect(account,
 	                       gaim_account_get_string(account, "server",  YAHOO_PAGER_HOST),
 	                       gaim_account_get_int(account, "port", YAHOO_PAGER_PORT),
--- a/src/protocols/yahoo/yahoo.h	Mon Dec 15 01:04:51 2003 +0000
+++ b/src/protocols/yahoo/yahoo.h	Mon Dec 15 01:47:29 2003 +0000
@@ -25,7 +25,7 @@
 
 #include "prpl.h"
 
-#define YAHOO_PAGER_HOST "scs.yahoo.com"
+#define YAHOO_PAGER_HOST "scs.msg.yahoo.com"
 #define YAHOO_PAGER_PORT 5050
 #define YAHOO_PROFILE_URL "http://profiles.yahoo.com/"
 #define YAHOO_XFER_HOST "filetransfer.msg.yahoo.com"