diff mod_mam_muc/mod_mam_muc.lua @ 2500:ec046f915506

mod_mam_muc: Minor syntax change
author Kim Alvefur <zash@zash.se>
date Tue, 14 Feb 2017 09:51:22 +0100
parents e065e94f0ac6
children 04064f01df0e
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Tue Feb 14 09:49:23 2017 +0100
+++ b/mod_mam_muc/mod_mam_muc.lua	Tue Feb 14 09:51:22 2017 +0100
@@ -190,7 +190,7 @@
 		local vstart, vend = (qstart and timestamp_parse(qstart)), (qend and timestamp_parse(qend))
 		if (qstart and not vstart) or (qend and not vend) then
 			origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid timestamp"))
-			return true
+			return true;
 		end
 		qstart, qend = vstart, vend;
 	end
@@ -254,6 +254,7 @@
 			origin.send(fwd_st);
 		end
 	end
+
 	if reverse then
 		for i = #results, 1, -1 do
 			origin.send(results[i]);