# HG changeset patch # User Mark Doliner # Date 1145587738 0 # Node ID e5c3bfc208a9bb11217ab7fa2057795fb277a811 # Parent cafb9a4b206f3dae8f60f224bccc20f17d49a88d [gaim-migrate @ 16074] Change the name of the oscar account preference for "always use proxy server for peer connections." The description and meaning of this preference has changed between 1.5.0 and 2.0.0. It almost has the inverse meaning of what it used to have. Also, the default changed from TRUE to FALSE, and I want to reset people's value to the default. committer: Tailor Script diff -r cafb9a4b206f -r e5c3bfc208a9 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Thu Apr 20 05:51:37 2006 +0000 +++ b/src/protocols/oscar/oscar.c Fri Apr 21 02:48:58 2006 +0000 @@ -66,7 +66,7 @@ #define OSCAR_DEFAULT_AUTHORIZATION TRUE #define OSCAR_DEFAULT_HIDE_IP TRUE #define OSCAR_DEFAULT_WEB_AWARE FALSE -#define OSCAR_DEFAULT_USE_RV_PROXY FALSE +#define OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY FALSE static int caps_aim = OSCAR_CAPABILITY_CHAT | OSCAR_CAPABILITY_BUDDYICON | OSCAR_CAPABILITY_DIRECTIM | OSCAR_CAPABILITY_SENDFILE | OSCAR_CAPABILITY_INTEROPERATE | OSCAR_CAPABILITY_ICHAT; static int caps_icq = OSCAR_CAPABILITY_BUDDYICON | OSCAR_CAPABILITY_DIRECTIM | OSCAR_CAPABILITY_SENDFILE | OSCAR_CAPABILITY_ICQUTF8 | OSCAR_CAPABILITY_INTEROPERATE | OSCAR_CAPABILITY_ICHAT; @@ -6459,17 +6459,16 @@ option = gaim_account_option_string_new(_("Encoding"), "encoding", OSCAR_DEFAULT_CUSTOM_ENCODING); prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); - /* TODO: Need to somehow invert this */ option = gaim_account_option_bool_new( - _("Always use AIM/ICQ proxy server\n(slower, but does not reveal your IP address)"), "use_rv_proxy", - OSCAR_DEFAULT_USE_RV_PROXY); + _("Always use AIM/ICQ proxy server\n(slower, but does not reveal your IP address)"), "always_use_rv_proxy", + OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY); prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); /* Preferences */ gaim_prefs_add_none("/plugins/prpl/oscar"); gaim_prefs_add_bool("/plugins/prpl/oscar/recent_buddies", FALSE); gaim_prefs_add_bool("/plugins/prpl/oscar/show_idle", FALSE); - gaim_prefs_remove("/plugins/prpl/oscar/use_rv_proxy"); + gaim_prefs_remove("/plugins/prpl/oscar/always_use_rv_proxy"); } GAIM_INIT_PLUGIN(oscar, init_plugin, info); diff -r cafb9a4b206f -r e5c3bfc208a9 src/protocols/oscar/peer.c --- a/src/protocols/oscar/peer.c Thu Apr 20 05:51:37 2006 +0000 +++ b/src/protocols/oscar/peer.c Fri Apr 21 02:48:58 2006 +0000 @@ -119,7 +119,7 @@ conn->listenerfd = -1; conn->fd = -1; conn->lastactivity = time(NULL); - conn->use_proxy |= gaim_account_get_bool(account, "use_rv_proxy", FALSE); + conn->use_proxy |= gaim_account_get_bool(account, "always_use_rv_proxy", FALSE); if (type == OSCAR_CAPABILITY_DIRECTIM) memcpy(conn->magic, "ODC2", 4);