diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-11 23:29:59 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-11 23:29:59 +0200 |
commit | 3a4f54f014d4bb0714ef910c92500a8a4202c158 (patch) | |
tree | 4c88cd4118244b85bf84b7200cea8074a709a182 /plugins/mod_mam | |
parent | c8528f9004a6053ad1a999e2ecc90d07267d5abd (diff) | |
download | prosody-3a4f54f014d4bb0714ef910c92500a8a4202c158.tar.gz prosody-3a4f54f014d4bb0714ef910c92500a8a4202c158.zip |
mod_mam: Move final log message to end of query procedure
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 82bc6b5f..2f6ab531 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -200,13 +200,13 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) first, last = last, first; end - -- That's all folks! - module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, #results); - origin.send(st.reply(stanza) :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) :add_child(rsm.generate { first = first, last = last, count = total })); + + -- That's all folks! + module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, #results); return true; end); |