Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 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 | cbfbed263d00 |
children | 0d7b5d7cb5c7 |
comparison
equal
deleted
inserted
replaced
7882:b4c2f92d4d24 | 7883:30ed1fc892aa |
---|---|
2046 } | 2046 } |
2047 } | 2047 } |
2048 | 2048 |
2049 #endif /* YAHOO_WEBMESSENGER */ | 2049 #endif /* YAHOO_WEBMESSENGER */ |
2050 | 2050 |
2051 #ifndef YAHOO_WEBMESSENGER | |
2052 static void yahoo_server_check(GaimAccount *account) | |
2053 { | |
2054 const char *server; | |
2055 | |
2056 server = gaim_account_get_string(account, "server", YAHOO_PAGER_HOST); | |
2057 | |
2058 if (strcmp(server, "scs.yahoo.com") == 0) | |
2059 gaim_account_set_string(account, "server", YAHOO_PAGER_HOST); | |
2060 } | |
2061 #endif | |
2062 | |
2051 static void yahoo_login(GaimAccount *account) { | 2063 static void yahoo_login(GaimAccount *account) { |
2052 GaimConnection *gc = gaim_account_get_connection(account); | 2064 GaimConnection *gc = gaim_account_get_connection(account); |
2053 struct yahoo_data *yd = gc->proto_data = g_new0(struct yahoo_data, 1); | 2065 struct yahoo_data *yd = gc->proto_data = g_new0(struct yahoo_data, 1); |
2054 | 2066 |
2055 gc->flags |= GAIM_CONNECTION_HTML | GAIM_CONNECTION_NO_BGCOLOR; | 2067 gc->flags |= GAIM_CONNECTION_HTML | GAIM_CONNECTION_NO_BGCOLOR; |
2060 yd->friends = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, yahoo_friend_free); | 2072 yd->friends = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, yahoo_friend_free); |
2061 yd->confs = NULL; | 2073 yd->confs = NULL; |
2062 yd->conf_id = 2; | 2074 yd->conf_id = 2; |
2063 | 2075 |
2064 #ifndef YAHOO_WEBMESSENGER | 2076 #ifndef YAHOO_WEBMESSENGER |
2077 | |
2078 yahoo_server_check(account); | |
2065 | 2079 |
2066 if (gaim_proxy_connect(account, | 2080 if (gaim_proxy_connect(account, |
2067 gaim_account_get_string(account, "server", YAHOO_PAGER_HOST), | 2081 gaim_account_get_string(account, "server", YAHOO_PAGER_HOST), |
2068 gaim_account_get_int(account, "port", YAHOO_PAGER_PORT), | 2082 gaim_account_get_int(account, "port", YAHOO_PAGER_PORT), |
2069 yahoo_got_connected, gc) != 0) | 2083 yahoo_got_connected, gc) != 0) |