Mercurial > prosody-modules
diff mod_mam/mod_mam.lua @ 1683:cc3fad4198bc
mod_mam: Rename variable
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 May 2015 13:27:53 +0200 |
parents | 6b2122630b92 |
children | 838150167871 |
line wrap: on
line diff
--- 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);