Software /
code /
prosody-modules
Changeset
2020:37b30f10fbba
mod_mam: Bit of spacing between blocks of code
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 19 Jan 2016 14:33:25 +0100 |
parents | 2019:7198c129657c |
children | 2021:5fb917b86838 |
files | mod_mam/mod_mam.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua Tue Jan 19 14:33:02 2016 +0100 +++ b/mod_mam/mod_mam.lua Tue Jan 19 14:33:25 2016 +0100 @@ -37,6 +37,7 @@ local archive_store = "archive2"; local archive = assert(module:open_store(archive_store, "archive")); + if archive.name == "null" then module:log("debug", "Attempt to open archive storage returned null driver"); module:log("error", "Unable to open archive storage, no archive capable storage driver enabled?"); @@ -179,6 +180,7 @@ origin.send(fwd_st); end end + if reverse then for i = #results, 1, -1 do origin.send(results[i]);