changeset 18415:aed9eceb7b0f

Don't allow setting auto-accept preferences for blist nodes that won't be saved. Fixes #2026.
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 04 Jul 2007 03:42:03 +0000
parents ec20ef0c2509
children 10af8f0ccb6b
files libpurple/plugins/autoaccept.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/autoaccept.c	Mon Jul 02 06:34:56 2007 +0000
+++ b/libpurple/plugins/autoaccept.c	Wed Jul 04 03:42:03 2007 +0000
@@ -178,7 +178,8 @@
 {
 	PurpleMenuAction *action;
 
-	if (!PURPLE_BLIST_NODE_IS_BUDDY(node) && !PURPLE_BLIST_NODE_IS_CONTACT(node))
+	if (!PURPLE_BLIST_NODE_IS_BUDDY(node) && !PURPLE_BLIST_NODE_IS_CONTACT(node) &&
+		!(purple_blist_node_get_flags(node) & PURPLE_BLIST_NODE_FLAG_NO_SAVE))
 		return;
 
 	action = purple_menu_action_new(_("Autoaccept File Transfers..."),