aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-13 19:57:43 +0200
committerKim Alvefur <zash@zash.se>2019-07-13 19:57:43 +0200
commit41c458eac5f9df61ab8af811c74c8d89e7f38e98 (patch)
tree74fce4ef12b7b0551a51ed3ebb8161fdcbc51485 /plugins
parent3a4f54f014d4bb0714ef910c92500a8a4202c158 (diff)
downloadprosody-41c458eac5f9df61ab8af811c74c8d89e7f38e98.tar.gz
prosody-41c458eac5f9df61ab8af811c74c8d89e7f38e98.zip
mod_mam: Report correct count of results for forward queries
#results is only correct for backwards queries, the table is unused for forward queries.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_mam/mod_mam.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 2f6ab531..855e1974 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -206,7 +206,7 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event)
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);