comparison libpurple/protocols/oscar/oscar.c @ 28877:a990da4540d3

oscar: Remove the simultaneous logins option from ICQ accounts. Marcus pointed out that it's only useful for AIM.
author Paul Aurich <paul@darkrain42.org>
date Wed, 04 Nov 2009 19:05:30 +0000
parents 4575d8daba12
children bb923bcae9de
comparison
equal deleted inserted replaced
28876:cf9ea9f2c0bb 28877:a990da4540d3
7157 } 7157 }
7158 7158
7159 return FALSE; 7159 return FALSE;
7160 } 7160 }
7161 7161
7162 void oscar_init(PurplePluginProtocolInfo *prpl_info) 7162 void oscar_init(PurplePlugin *plugin)
7163 { 7163 {
7164 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(plugin);
7164 PurpleAccountOption *option; 7165 PurpleAccountOption *option;
7165 static gboolean init = FALSE; 7166 static gboolean init = FALSE;
7166 7167
7167 option = purple_account_option_string_new(_("Server"), "server", OSCAR_DEFAULT_LOGIN_SERVER); 7168 option = purple_account_option_string_new(_("Server"), "server", OSCAR_DEFAULT_LOGIN_SERVER);
7168 prpl_info->protocol_options = g_list_append(prpl_info->protocol_options, option); 7169 prpl_info->protocol_options = g_list_append(prpl_info->protocol_options, option);
7181 option = purple_account_option_bool_new( 7182 option = purple_account_option_bool_new(
7182 _("Always use AIM/ICQ proxy server for\nfile transfers and direct IM (slower,\nbut does not reveal your IP address)"), "always_use_rv_proxy", 7183 _("Always use AIM/ICQ proxy server for\nfile transfers and direct IM (slower,\nbut does not reveal your IP address)"), "always_use_rv_proxy",
7183 OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY); 7184 OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY);
7184 prpl_info->protocol_options = g_list_append(prpl_info->protocol_options, option); 7185 prpl_info->protocol_options = g_list_append(prpl_info->protocol_options, option);
7185 7186
7186 option = purple_account_option_bool_new(_("Allow multiple simultaneous logins"), "allow_multiple_logins", 7187 if (g_str_equal(purple_plugin_get_id(plugin), "prpl-aim")) {
7187 OSCAR_DEFAULT_ALLOW_MULTIPLE_LOGINS); 7188 option = purple_account_option_bool_new(_("Allow multiple simultaneous logins"), "allow_multiple_logins",
7188 prpl_info->protocol_options = g_list_append(prpl_info->protocol_options, option); 7189 OSCAR_DEFAULT_ALLOW_MULTIPLE_LOGINS);
7190 prpl_info->protocol_options = g_list_append(prpl_info->protocol_options, option);
7191 }
7189 7192
7190 if (init) 7193 if (init)
7191 return; 7194 return;
7192 init = TRUE; 7195 init = TRUE;
7193 7196