comparison mod_mam/mod_mam.lua @ 711:53afd87f3612

mod_mam: Enforce max results even if RSM isn't used.
author Kim Alvefur <zash@zash.se>
date Mon, 11 Jun 2012 16:54:32 +0200
parents f987c7b79008
children 3c37445f26ac
comparison
equal deleted inserted replaced
710:b0c0acccd7c4 711:53afd87f3612
191 if qset then 191 if qset then
192 if qset.after == id then 192 if qset.after == id then
193 module:log("debug", "Start of matching range found"); 193 module:log("debug", "Start of matching range found");
194 qset_matches = true; 194 qset_matches = true;
195 end 195 end
196 if n >= qmax then 196 end
197 module:log("debug", "Max number of items matched"); 197 if n >= qmax then
198 break 198 module:log("debug", "Max number of items matched");
199 end 199 break
200 end 200 end
201 end 201 end
202 -- That's all folks! 202 -- That's all folks!
203 module:log("debug", "Archive query %s completed", tostring(qid)); 203 module:log("debug", "Archive query %s completed", tostring(qid));
204 204