# HG changeset patch # User Kim Alvefur # Date 1563040663 -7200 # Node ID a36c731ed540aea9ab38d74964cde33a205047c7 # Parent 44371850c6b0dfb59d412449bf62389710996ae7 mod_mam: Report correct count of results for forward queries #results is only correct for backwards queries, the table is unused for forward queries. diff -r 44371850c6b0 -r a36c731ed540 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Thu Jul 11 23:29:59 2019 +0200 +++ b/plugins/mod_mam/mod_mam.lua Sat Jul 13 19:57:43 2019 +0200 @@ -206,7 +206,7 @@ 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); + module:log("debug", "Archive query id=%s completed, %d items returned", qid or stanza.attr.id, complete and count or count - 1); return true; end);