Software /
code /
prosody
Diff
plugins/mod_mam/mod_mam.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 | 7849:93a068ef4b2c |
child | 7851:80ee0d9cd56f |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Mon Dec 19 08:44:56 2016 +0100 +++ b/plugins/mod_mam/mod_mam.lua Wed Jan 11 13:08:50 2017 +0100 @@ -34,7 +34,7 @@ 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