diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-25 21:55:08 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-25 21:55:08 +0200 |
commit | 3fc5a6d21becccd3adef5aa286814c2d0e3ca78d (patch) | |
tree | 365623c33935064397d98011db0c93110ff7962a | |
parent | 808d1c46bb6e783e57b42a4c7a5fc7583738020d (diff) | |
download | prosody-3fc5a6d21becccd3adef5aa286814c2d0e3ca78d.tar.gz prosody-3fc5a6d21becccd3adef5aa286814c2d0e3ca78d.zip |
mod_mam: Ignore case of null storage driver
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 2874ac23..01dae613 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -40,13 +40,9 @@ local strip_tags = module:get_option_set("dont_archive_namespaces", { "http://ja local archive_store = module:get_option_string("archive_store", "archive"); local archive = module:open_store(archive_store, "archive"); -if archive.name == "null" or not archive.find then - if not archive.find then - module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API"); - module:log("debug", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>"); - else - module:log("debug", "Attempt to open archive storage returned null driver"); - end +if not archive.find then + module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API"); + module:log("debug", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>"); module:log("debug", "See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); module:log("info", "Using in-memory fallback archive driver"); archive = module:require "fallback_archive"; |