Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 10078:44371850c6b0
mod_mam: Move final log message to end of query procedure
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 11 Jul 2019 23:29:59 +0200 |
parent | 10077:c0702a1534cb |
child | 10079:a36c731ed540 |
comparison
equal
deleted
inserted
replaced
10077:c0702a1534cb | 10078:44371850c6b0 |
---|---|
198 origin.send(results[i]); | 198 origin.send(results[i]); |
199 end | 199 end |
200 first, last = last, first; | 200 first, last = last, first; |
201 end | 201 end |
202 | 202 |
203 -- That's all folks! | |
204 module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, #results); | |
205 | |
206 origin.send(st.reply(stanza) | 203 origin.send(st.reply(stanza) |
207 :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) | 204 :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) |
208 :add_child(rsm.generate { | 205 :add_child(rsm.generate { |
209 first = first, last = last, count = total })); | 206 first = first, last = last, count = total })); |
207 | |
208 -- That's all folks! | |
209 module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, #results); | |
210 return true; | 210 return true; |
211 end); | 211 end); |
212 | 212 |
213 local function has_in_roster(user, who) | 213 local function has_in_roster(user, who) |
214 local roster = rm_load_roster(user, host); | 214 local roster = rm_load_roster(user, host); |