aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-01-11 13:08:50 +0100
committerKim Alvefur <zash@zash.se>2017-01-11 13:08:50 +0100
commit50b3fb881cfa8813a98c52923c1534d6dde2b2ea (patch)
treec214ae093baa8c570f37e7ee77711427bcee16bf /plugins/mod_mam/mod_mam.lua
parent687687507ca6e0acbf744f56a28ba05d96653c1c (diff)
downloadprosody-50b3fb881cfa8813a98c52923c1534d6dde2b2ea.tar.gz
prosody-50b3fb881cfa8813a98c52923c1534d6dde2b2ea.zip
mod_mam: Change store name to "archive" but make it configurable for people who have data in "archive2"
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 898b81c8..cff542bb 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -34,7 +34,7 @@ if global_default_policy ~= "roster" then
end
local strip_tags = module:get_option_set("dont_archive_namespaces", { "http://jabber.org/protocol/chatstates" });
-local archive_store = "archive2";
+local archive_store = module:get_option_string("archive_store", "archive");
local archive = assert(module:open_store(archive_store, "archive"));
if archive.name == "null" or not archive.find then