comparison libpurple/protocols/gg/gg.c @ 32740:9740dd029827

Gadu-Gadu: option to show links from strangers. Fixes #10591
author tomkiewicz@cpw.pidgin.im
date Wed, 12 Oct 2011 21:06:20 +0000
parents 2b3b3ffc9d28
children 318345f39e98
comparison
equal deleted inserted replaced
32739:2b3b3ffc9d28 32740:9740dd029827
2264 g_free(glp); 2264 g_free(glp);
2265 return; 2265 return;
2266 } 2266 }
2267 2267
2268 glp->image_size = 255; 2268 glp->image_size = 255;
2269 glp->status_flags = GG_STATUS_FLAG_UNKNOWN;
2270
2271 if (purple_account_get_bool(account, "show_links_from_strangers", 1))
2272 glp->status_flags |= GG_STATUS_FLAG_SPAM;
2269 2273
2270 presence = purple_account_get_presence(account); 2274 presence = purple_account_get_presence(account);
2271 status = purple_presence_get_active_status(presence); 2275 status = purple_presence_get_active_status(presence);
2272 2276
2273 glp->encoding = GG_ENCODING_UTF8; 2277 glp->encoding = GG_ENCODING_UTF8;
2956 option = purple_account_option_list_new(_("Connection security"), 2960 option = purple_account_option_list_new(_("Connection security"),
2957 "encryption", encryption_options); 2961 "encryption", encryption_options);
2958 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, 2962 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
2959 option); 2963 option);
2960 2964
2965 option = purple_account_option_bool_new(_("Show links from strangers"),
2966 "show_links_from_strangers", 1);
2967 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
2968 option);
2969
2961 my_protocol = plugin; 2970 my_protocol = plugin;
2962 2971
2963 gg_debug_handler = purple_gg_debug_handler; 2972 gg_debug_handler = purple_gg_debug_handler;
2964 } 2973 }
2965 2974