--- a/mod_mam/mod_mam.lua Mon Apr 08 23:38:06 2013 +0200
+++ b/mod_mam/mod_mam.lua Thu Apr 11 21:39:03 2013 +0200
@@ -236,7 +236,7 @@
local reply = st.reply(stanza);
if last then
-- This is a bit redundant, isn't it?
- reply:query(xmlns_mam):add_child(rsm.generate{first = (reverse and last or first), last = (reverse and first or last), count = n});
+ reply:query(xmlns_mam):add_child(rsm.generate{first = (reverse and last or first), last = (reverse and first or last), count = #data});
end
origin.send(reply);
return true