# HG changeset patch # User Kim Alvefur # Date 1430652473 -7200 # Node ID cc3fad4198bca610b47de9b2ede54ac544e68ca7 # Parent 6b2122630b925b64ae5dab3cf75e8b41029ac23e mod_mam: Rename variable diff -r 6b2122630b92 -r cc3fad4198bc mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Sun May 03 13:21:15 2015 +0200 +++ b/mod_mam/mod_mam.lua Sun May 03 13:27:53 2015 +0200 @@ -134,7 +134,7 @@ origin.send(st.error_reply(stanza, "cancel", "internal-server-error", err)); return true; end - local count = err; + local total = err; origin.send(st.reply(stanza)) local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to }; @@ -172,7 +172,7 @@ origin.send(st.message(msg_reply_attr) :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) :add_child(rsm.generate { - first = first, last = last, count = count })); + first = first, last = last, count = total })); return true; end);