Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
9163:8d22bc97b7be | 9164:76125b842b23 |
---|---|
898 g_free(info_data); | 898 g_free(info_data); |
899 } | 899 } |
900 | 900 |
901 void yahoo_get_info(GaimConnection *gc, const char *name) | 901 void yahoo_get_info(GaimConnection *gc, const char *name) |
902 { | 902 { |
903 struct yahoo_data *yd = gc->proto_data; | |
903 YahooGetInfoData *data; | 904 YahooGetInfoData *data; |
904 char *url; | 905 char *url; |
905 | 906 |
906 data = g_new0(YahooGetInfoData, 1); | 907 data = g_new0(YahooGetInfoData, 1); |
907 data->gc = gc; | 908 data->gc = gc; |
908 data->name = g_strdup(name); | 909 data->name = g_strdup(name); |
909 | 910 |
910 if (strstr(gaim_account_get_string(gaim_connection_get_account(gc), "server", YAHOO_PAGER_HOST), "yahoo.co.jp")) { | 911 if (yd->jp) { |
911 url = g_strdup_printf("%s%s", "http://profiles.yahoo.co.jp/", name); | 912 url = g_strdup_printf("%s%s", "http://profiles.yahoo.co.jp/", name); |
912 } else { | 913 } else { |
913 url = g_strdup_printf("%s%s", YAHOO_PROFILE_URL, name); | 914 url = g_strdup_printf("%s%s", YAHOO_PROFILE_URL, name); |
914 } | 915 } |
915 | 916 |