Software /
code /
prosody-modules
Diff
mod_mam/mod_mam.lua @ 800:966993356d2b
mod_mam: Report id of first item and number of items sent.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Aug 2012 22:31:08 +0200 |
parent | 799:53917d98d411 |
child | 808:ba2e207e1fb7 |
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua Thu Aug 16 21:31:46 2012 +0200 +++ b/mod_mam/mod_mam.lua Thu Aug 16 22:31:08 2012 +0200 @@ -225,7 +225,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{last = last}); + reply:query(xmlns_mam):add_child(rsm.generate{first = first, last = last, count = n}); end origin.send(reply); return true