Mercurial > prosody-modules
comparison mod_mam/mod_mam.lua @ 2662:2d5e0e2938d1
mod_mam: Remove extraneous assert when opening the store
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 02 Apr 2017 19:44:59 +0100 |
parents | 0f44d04d0d18 |
children | ff1f7e61517f |
comparison
equal
deleted
inserted
replaced
2661:1d734acabd46 | 2662:2d5e0e2938d1 |
---|---|
39 if global_default_policy ~= "roster" then | 39 if global_default_policy ~= "roster" then |
40 global_default_policy = module:get_option_boolean("default_archive_policy", global_default_policy); | 40 global_default_policy = module:get_option_boolean("default_archive_policy", global_default_policy); |
41 end | 41 end |
42 | 42 |
43 local archive_store = module:get_option_string("archive_store", "archive2"); | 43 local archive_store = module:get_option_string("archive_store", "archive2"); |
44 local archive = assert(module:open_store(archive_store, "archive")); | 44 local archive = module:open_store(archive_store, "archive"); |
45 | 45 |
46 if archive.name == "null" or not archive.find then | 46 if archive.name == "null" or not archive.find then |
47 -- luacheck: ignore 631 | 47 -- luacheck: ignore 631 |
48 if not archive.find then | 48 if not archive.find then |
49 module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API"); | 49 module:log("debug", "Attempt to open archive storage returned a valid driver but it does not seem to implement the storage API"); |