| 51 #undef YAHOO_DEBUG |
51 #undef YAHOO_DEBUG |
| 52 |
52 |
| 53 #define USEROPT_MAIL 0 |
53 #define USEROPT_MAIL 0 |
| 54 |
54 |
| 55 #define USEROPT_PAGERHOST 3 |
55 #define USEROPT_PAGERHOST 3 |
| 56 #define YAHOO_PAGER_HOST "scs.yahoo.com" |
56 #define YAHOO_PAGER_HOST "cs.yahoo.com" |
| 57 #define USEROPT_PAGERPORT 4 |
57 #define USEROPT_PAGERPORT 4 |
| 58 #define YAHOO_PAGER_PORT 5050 |
58 #define YAHOO_PAGER_PORT 5050 |
| 59 |
59 |
| 60 enum yahoo_service { /* these are easier to see in hex */ |
60 enum yahoo_service { /* these are easier to see in hex */ |
| 61 YAHOO_SERVICE_LOGON = 1, |
61 YAHOO_SERVICE_LOGON = 1, |
| 403 msg ? g_strdup(msg) : g_malloc0(1)); |
403 msg ? g_strdup(msg) : g_malloc0(1)); |
| 404 } |
404 } |
| 405 break; |
405 break; |
| 406 case 60: /* no clue */ |
406 case 60: /* no clue */ |
| 407 break; |
407 break; |
| |
408 case 16: /* Maybe this does more. Maybe it doesn't. */ |
| |
409 do_error_dialog("This version of the Yahoo! Messenger plugin is no longer" |
| |
410 "being supported. The latest version of Gaim is available" |
| |
411 "at " WEBSITE ".\n\nYou may be disconnected shortly.", |
| |
412 "Gaim -- Yahoo! Error"); |
| |
413 break; |
| 408 default: |
414 default: |
| 409 debug_printf("unknown status key %d\n", pair->key); |
415 debug_printf("unknown status key %d\n", pair->key); |
| 410 break; |
416 break; |
| 411 } |
417 } |
| 412 |
418 |
| 710 set_login_progress(gc, 1, "Connecting"); |
716 set_login_progress(gc, 1, "Connecting"); |
| 711 |
717 |
| 712 yd->fd = -1; |
718 yd->fd = -1; |
| 713 yd->hash = g_hash_table_new(g_str_hash, g_str_equal); |
719 yd->hash = g_hash_table_new(g_str_hash, g_str_equal); |
| 714 |
720 |
| 715 if (proxy_connect(user->proto_opt[USEROPT_PAGERHOST][0] ? |
721 if (!g_strncasecmp(user->proto_opt[USEROPT_PAGERHOST], "scs.yahoo.com", strlen("scs.yahoo.com"))) { |
| |
722 /* As of this morning, Yahoo is no longer supporting its server at scs.yahoo.com |
| |
723 * I don't like to edit the preferences in a prpl, but we'll keep this here |
| |
724 * for a while until everybody's happy again. -5 Feb 2002*/ |
| |
725 debug_printf("Setting new Yahoo! server.\n"); |
| |
726 g_snprintf(user->proto_opt[USEROPT_PAGERHOST], strlen("cs.yahoo.com") + 1, "cs.yahoo.com"); |
| |
727 save_prefs(); |
| |
728 } |
| |
729 |
| |
730 if (proxy_connect(user->proto_opt[USEROPT_PAGERHOST][0] ? |
| 716 user->proto_opt[USEROPT_PAGERHOST] : YAHOO_PAGER_HOST, |
731 user->proto_opt[USEROPT_PAGERHOST] : YAHOO_PAGER_HOST, |
| 717 user->proto_opt[USEROPT_PAGERPORT][0] ? |
732 user->proto_opt[USEROPT_PAGERPORT][0] ? |
| 718 atoi(user->proto_opt[USEROPT_PAGERPORT]) : YAHOO_PAGER_PORT, |
733 atoi(user->proto_opt[USEROPT_PAGERPORT]) : YAHOO_PAGER_PORT, |
| 719 yahoo_got_connected, gc) < 0) { |
734 yahoo_got_connected, gc) < 0) { |
| 720 hide_login_progress(gc, "Connection problem"); |
735 hide_login_progress(gc, "Connection problem"); |