diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-16 23:49:27 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-16 23:49:27 +0100 |
commit | 3e5d5895f9365fbecf497d9080f8f5705a3266a6 (patch) | |
tree | 5d9e9dfec7020f862dc40a4b872556e3661b5327 /plugins/mod_mam/mamprefs.lib.lua | |
parent | 5b35a9ffb3c7d9cc46c10d788b1dd573f11b1688 (diff) | |
parent | a374056fa56185322141484732d963abdee02941 (diff) | |
download | prosody-3e5d5895f9365fbecf497d9080f8f5705a3266a6.tar.gz prosody-3e5d5895f9365fbecf497d9080f8f5705a3266a6.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_mam/mamprefs.lib.lua')
-rw-r--r-- | plugins/mod_mam/mamprefs.lib.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_mam/mamprefs.lib.lua b/plugins/mod_mam/mamprefs.lib.lua index a561b9d5..72c08886 100644 --- a/plugins/mod_mam/mamprefs.lib.lua +++ b/plugins/mod_mam/mamprefs.lib.lua @@ -10,7 +10,10 @@ -- -- luacheck: ignore 122/prosody -local global_default_policy = module:get_option("default_archive_policy", true); +local global_default_policy = module:get_option_string("default_archive_policy", true); +if global_default_policy ~= "roster" then + global_default_policy = module:get_option_boolean("default_archive_policy", global_default_policy); +end do -- luacheck: ignore 211/prefs_format |