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 | 2d46bfed68cb755d1facdd4605c958814181e1b7 (patch) | |
tree | 4c88cd4118244b85bf84b7200cea8074a709a182 /plugins/mod_mam | |
parent | f218adca6982d00fa3995d2f97ed7a1945f09954 (diff) | |
download | prosody-2d46bfed68cb755d1facdd4605c958814181e1b7.tar.gz prosody-2d46bfed68cb755d1facdd4605c958814181e1b7.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); |