diff src/protocols/yahoo/yahoo_profile.c @ 9164:76125b842b23

[gaim-migrate @ 9949] This is proper yahoo japan support. Technically it worked before, but you had to know the yahoo japan server, and typing in nonascii didn't work. The account options are kind of ugly. Eventually Chip is going to replace the check box with something more like a dropdown thingy, that automaticly hides the settings that aren't used (Pager Host vs. Japan Pager Host, etc) But it's not too bad now. And I think I orignally wrote this patch for 0.64 or something, so I got tired of waiting. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 02 Jun 2004 03:02:50 +0000
parents 82aa3bc494de
children f0488214826f
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_profile.c	Wed Jun 02 01:26:21 2004 +0000
+++ b/src/protocols/yahoo/yahoo_profile.c	Wed Jun 02 03:02:50 2004 +0000
@@ -900,6 +900,7 @@
 
 void yahoo_get_info(GaimConnection *gc, const char *name)
 {
+	struct yahoo_data *yd = gc->proto_data;
 	YahooGetInfoData *data;
 	char *url;
 
@@ -907,7 +908,7 @@
 	data->gc   = gc;
 	data->name = g_strdup(name);
 
-      if (strstr(gaim_account_get_string(gaim_connection_get_account(gc), "server", YAHOO_PAGER_HOST), "yahoo.co.jp")) {
+	if (yd->jp) {
 		url = g_strdup_printf("%s%s", "http://profiles.yahoo.co.jp/", name);
 	} else {
 		url = g_strdup_printf("%s%s", YAHOO_PROFILE_URL, name);