# HG changeset patch # User tomkiewicz@cpw.pidgin.im # Date 1318453580 0 # Node ID 9740dd0298278387446edc54dc1fabd2d9661e99 # Parent 2b3b3ffc9d285cb5d771771e641af8451d41064a Gadu-Gadu: option to show links from strangers. Fixes #10591 diff -r 2b3b3ffc9d28 -r 9740dd029827 ChangeLog --- a/ChangeLog Tue Oct 11 10:27:00 2011 +0000 +++ b/ChangeLog Wed Oct 12 21:06:20 2011 +0000 @@ -14,6 +14,7 @@ (#14648) * Fixed password change dialog and problems with connecting to accounts with non-ASCII passwords. (Tomasz Wasilczyk) (#14652) + * Option to show links from strangers. (Tomasz Wasilczyk) (#10591) MXit: * Remove all reference to Hidden Number. diff -r 2b3b3ffc9d28 -r 9740dd029827 libpurple/protocols/gg/gg.c --- a/libpurple/protocols/gg/gg.c Tue Oct 11 10:27:00 2011 +0000 +++ b/libpurple/protocols/gg/gg.c Wed Oct 12 21:06:20 2011 +0000 @@ -2266,6 +2266,10 @@ } glp->image_size = 255; + glp->status_flags = GG_STATUS_FLAG_UNKNOWN; + + if (purple_account_get_bool(account, "show_links_from_strangers", 1)) + glp->status_flags |= GG_STATUS_FLAG_SPAM; presence = purple_account_get_presence(account); status = purple_presence_get_active_status(presence); @@ -2958,6 +2962,11 @@ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); + option = purple_account_option_bool_new(_("Show links from strangers"), + "show_links_from_strangers", 1); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, + option); + my_protocol = plugin; gg_debug_handler = purple_gg_debug_handler;