Software /
code /
prosody
Diff
plugins/mod_mam/mamprefs.lib.lua @ 7850:10d91860172f
mod_mam: Change store name to "archive" but make it configurable for people who have data in "archive2"
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Jan 2017 13:08:50 +0100 |
parent | 7836:30fac9154fd4 |
child | 7851:80ee0d9cd56f |
line wrap: on
line diff
--- a/plugins/mod_mam/mamprefs.lib.lua Mon Dec 19 08:44:56 2016 +0100 +++ b/plugins/mod_mam/mamprefs.lib.lua Wed Jan 11 13:08:50 2017 +0100 @@ -16,7 +16,8 @@ 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];