diff 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
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!