diff 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
line wrap: on
line diff
--- 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;