# HG changeset patch # User Kim Alvefur # Date 1487062389 -3600 # Node ID f576ac1cad65744c9168d5968ab5e1eb89a073e9 # Parent 04064f01df0e8adc6db2218c1a418d0f761dec88 mod_mam_muc: Move swapping of reversed variables (like 5fb917b86838 for mod_mam) diff -r 04064f01df0e -r f576ac1cad65 mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:51:59 2017 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:53:09 2017 +0100 @@ -259,12 +259,12 @@ for i = #results, 1, -1 do origin.send(results[i]); end + first, last = last, first; end -- That's all folks! module:log("debug", "Archive query %s completed", tostring(qid)); - if reverse then first, last = last, first; end origin.send(st.message(msg_reply_attr) :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) :add_child(rsm.generate {