plugins/mod_mam/mod_mam.lua
changeset 10083 a36c731ed540
parent 10082 44371850c6b0
child 10115 0f335815244f
--- 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);