changeset 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 (2012-06-11)
parents b0c0acccd7c4
children 227d48f927ff
files mod_mam/mod_mam.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Mon Jun 11 00:35:26 2012 +0000
+++ b/mod_mam/mod_mam.lua	Mon Jun 11 16:54:32 2012 +0200
@@ -193,10 +193,10 @@
 					module:log("debug", "Start of matching range found");
 					qset_matches = true;
 				end
-				if n >= qmax then
-					module:log("debug", "Max number of items matched");
-					break
-				end
+			end
+			if n >= qmax then
+				module:log("debug", "Max number of items matched");
+				break
 			end
 		end
 		-- That's all folks!