# HG changeset patch # User Kim Alvefur # Date 1453210405 -3600 # Node ID 37b30f10fbba6c0bbfa7102e690dee17a3ef2d54 # Parent 7198c129657c7552ac7826f160b4984c3b2378c0 mod_mam: Bit of spacing between blocks of code diff -r 7198c129657c -r 37b30f10fbba mod_mam/mod_mam.lua --- 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]);