Diff

mod_mam/mod_mam.lua @ 2017:d44ac0756c46

mod_mam: Enable archiving by default, less of a privacy issue if messages expire
author Kim Alvefur <zash@zash.se>
date Tue, 19 Jan 2016 13:34:53 +0100
parent 2016:279885fd9728
child 2018:13f46d9e526f
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Tue Jan 19 13:34:16 2016 +0100
+++ b/mod_mam/mod_mam.lua	Tue Jan 19 13:34:53 2016 +0100
@@ -30,7 +30,7 @@
 local m_min = math.min;
 local timestamp, timestamp_parse = require "util.datetime".datetime, require "util.datetime".parse;
 local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", 50);
-local global_default_policy = module:get_option("default_archive_policy", false);
+local global_default_policy = module:get_option("default_archive_policy", true);
 if global_default_policy ~= "roster" then
 	global_default_policy = module:get_option_boolean("default_archive_policy", global_default_policy);
 end