aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mamprefs.lib.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
commit8adfea849c2328eeeedbd0ea85afd0d65a9214eb (patch)
treec214ae093baa8c570f37e7ee77711427bcee16bf /plugins/mod_mam/mamprefs.lib.lua
parentd15ec87e01e22633da78db6113d70ac3da2b0e3f (diff)
downloadprosody-8adfea849c2328eeeedbd0ea85afd0d65a9214eb.tar.gz
prosody-8adfea849c2328eeeedbd0ea85afd0d65a9214eb.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/mamprefs.lib.lua')
-rw-r--r--plugins/mod_mam/mamprefs.lib.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_mam/mamprefs.lib.lua b/plugins/mod_mam/mamprefs.lib.lua
index 98e74bd6..f9b4b129 100644
--- a/plugins/mod_mam/mamprefs.lib.lua
+++ b/plugins/mod_mam/mamprefs.lib.lua
@@ -16,7 +16,8 @@ do
end
local sessions = hosts[module.host].sessions;
-local prefs = module:open_store("archive2_prefs");
+local archive_store = module:get_option_string("archive_store", "archive");
+local prefs = module:open_store(archive_store .. "_prefs");
local function get_prefs(user)
local user_sessions = sessions[user];