# HG changeset patch # User Stu Tomlinson # Date 1132846774 0 # Node ID c9a943c60c33f57b35cc1a8304e09b656f9e95c9 # Parent cc917559894b562a502422593b8e2409973cc017 [gaim-migrate @ 14514] I think this is what was intended here committer: Tailor Script diff -r cc917559894b -r c9a943c60c33 src/protocols/yahoo/yahoochat.c --- a/src/protocols/yahoo/yahoochat.c Thu Nov 24 15:14:00 2005 +0000 +++ b/src/protocols/yahoo/yahoochat.c Thu Nov 24 15:39:34 2005 +0000 @@ -1344,16 +1344,18 @@ { struct yahoo_roomlist *yrl; GaimRoomlist *rl; + const char *rll; char *url; GList *fields = NULL; GaimRoomlistField *f; - if (YAHOO_ROOMLIST_LOCALE) { + rll = gaim_account_get_string(gaim_connection_get_account(gc), + "room_list_locale", YAHOO_ROOMLIST_LOCALE); + + if (rll != NULL && *rll != '\0') { 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)); + "room_list", YAHOO_ROOMLIST_URL), rll); } else { url = g_strdup_printf("%s?chatcat=0", gaim_account_get_string(gaim_connection_get_account(gc), @@ -1422,6 +1424,7 @@ struct yahoo_roomlist *yrl; char *url; char *id; + const char *rll; if (category->type != GAIM_ROOMLIST_ROOMTYPE_CATEGORY) return; @@ -1431,11 +1434,13 @@ return; } - if (YAHOO_ROOMLIST_LOCALE) { + rll = gaim_account_get_string(list->account, "room_list_locale", + YAHOO_ROOMLIST_LOCALE); + + if (rll != NULL && *rll != '\0') { 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)); + gaim_account_get_string(list->account,"room_list", + YAHOO_ROOMLIST_URL), id, rll); } else { url = g_strdup_printf("%s?chatroom_%s=0", gaim_account_get_string(list->account,"room_list",