Changeset

8905:65d1a80d3565

mod_mam: Add coment on how 'complete' works
author Kim Alvefur <zash@zash.se>
date Sun, 10 Jun 2018 00:14:34 +0200
parents 8904:faca839ddbbb
children 8906:f15e35458ecc 8907:b7b960d30eef
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Sat Jun 09 23:57:58 2018 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Sun Jun 10 00:14:34 2018 +0200
@@ -168,6 +168,8 @@
 	for id, item, when in data do
 		count = count + 1;
 		if count > qmax then
+			-- We requested qmax+1 items. If that many items are retrieved then
+			-- there are more results to page through, so:
 			complete = nil;
 			break;
 		end