--- 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]);