Software /
code /
prosody-modules
Comparison
mod_mam/mod_mam.lua @ 2644:0f44d04d0d18
mod_mam: Ignore long log lines [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 Mar 2017 14:31:01 +0100 |
parent | 2516:248054199d0f |
child | 2662:2d5e0e2938d1 |
comparison
equal
deleted
inserted
replaced
2643:777d07e0cd73 | 2644:0f44d04d0d18 |
---|---|
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 = assert(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 if not archive.find then | 48 if not archive.find then |
48 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"); |
49 module:log("debug", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>"); | 50 module:log("debug", "mod_%s does not support archiving", archive._provided_by or archive.name and "storage_"..archive.name.."(?)" or "<unknown>"); |
50 else | 51 else |
51 module:log("debug", "Attempt to open archive storage returned null driver"); | 52 module:log("debug", "Attempt to open archive storage returned null driver"); |