From: Rob F. <rob...@us...> - 2002-02-07 00:13:52
|
Update of /cvsroot/gaim/gaim/src/protocols/yahoo In directory usw-pr-cvs1:/tmp/cvs-serv17378/src/protocols/yahoo Modified Files: yahoo.c Log Message: 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 ;-) Index: yahoo.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- yahoo.c 2001/12/22 08:08:37 1.30 +++ yahoo.c 2002/02/07 00:13:43 1.31 @@ -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, |