Mercurial > pidgin
diff src/protocols/yahoo/yahoochat.c @ 11043:629cbfd1ed6d
[gaim-migrate @ 12957]
Patch #1210242 from Bleeter
"Following on from patch 941731, I've updated for both head and oldstatus. I couldn't submit the patches there, so I've opened this so I can do so here.
As noted in the other tracker entry, I have some testing to do on all known locales so the FAQ can be updated accordingly. I'll submit patches once I've done this check."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 30 Jun 2005 05:33:05 +0000 |
parents | ec90b7d126be |
children | 8bf376579177 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoochat.c Thu Jun 30 05:13:41 2005 +0000 +++ b/src/protocols/yahoo/yahoochat.c Thu Jun 30 05:33:05 2005 +0000 @@ -1361,10 +1361,17 @@ GList *fields = NULL; GaimRoomlistField *f; - url = g_strdup_printf("%s?chatcat=0", - gaim_account_get_string( - gaim_connection_get_account(gc), - "room_list", YAHOO_ROOMLIST_URL)); + if (YAHOO_ROOMLIST_LOCALE) { + url = g_strdup_printf("%s?chatcat=0&intl=%s", + gaim_account_get_string(gaim_connection_get_account(gc), + "room_list", YAHOO_ROOMLIST_URL), + gaim_account_get_string(gaim_connection_get_account(gc), + "room_list_locale", YAHOO_ROOMLIST_LOCALE)); + } else { + url = g_strdup_printf("%s?chatcat=0", + gaim_account_get_string(gaim_connection_get_account(gc), + "room_list", YAHOO_ROOMLIST_URL)); + } yrl = g_new0(struct yahoo_roomlist, 1); rl = gaim_roomlist_new(gaim_connection_get_account(gc)); @@ -1437,10 +1444,16 @@ return; } - url = g_strdup_printf("%s?chatroom_%s=0", - gaim_account_get_string( - list->account, - "room_list", YAHOO_ROOMLIST_URL), id); + if (YAHOO_ROOMLIST_LOCALE) { + url = g_strdup_printf("%s?chatroom_%s=0&intl=%s", + gaim_account_get_string(list->account,"room_list", + YAHOO_ROOMLIST_URL), id, gaim_account_get_string(list->account, + "room_list_locale", YAHOO_ROOMLIST_LOCALE)); + } else { + url = g_strdup_printf("%s?chatroom_%s=0", + gaim_account_get_string(list->account,"room_list", + YAHOO_ROOMLIST_URL), id); + } yrl = g_new0(struct yahoo_roomlist, 1); yrl->list = list;