Mercurial > pidgin
changeset 32278: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 |
files | ChangeLog libpurple/protocols/gg/gg.c |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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;