# HG changeset patch # User Kim Alvefur # Date 1540497308 -7200 # Node ID 9a5485550bfd192b301119077e94e19e2db1498a # Parent 87e25d352de3ad6bab72437a4fe77a7f3f83afd6 mod_mam: Ignore case of null storage driver diff -r 87e25d352de3 -r 9a5485550bfd plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Thu Oct 25 21:21:22 2018 +0200 +++ b/plugins/mod_mam/mod_mam.lua Thu Oct 25 21:55:08 2018 +0200 @@ -40,13 +40,9 @@ 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 ""); - 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 ""); 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";