# HG changeset patch # User Kim Alvefur # Date 1487062282 -3600 # Node ID ec046f91550629ba54a4e4e9ffcc743df2358194 # Parent b8805ab1d4701fec5c776f92cbbc9346be9c10ab mod_mam_muc: Minor syntax change diff -r b8805ab1d470 -r ec046f915506 mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:49:23 2017 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:51:22 2017 +0100 @@ -190,7 +190,7 @@ local vstart, vend = (qstart and timestamp_parse(qstart)), (qend and timestamp_parse(qend)) if (qstart and not vstart) or (qend and not vend) then origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid timestamp")) - return true + return true; end qstart, qend = vstart, vend; end @@ -254,6 +254,7 @@ origin.send(fwd_st); end end + if reverse then for i = #results, 1, -1 do origin.send(results[i]);