Diff

mod_mam/mod_mam.lua @ 808:ba2e207e1fb7

mod_mam: Fix variable name, blame autocomplete
author Kim Alvefur <zash@zash.se>
date Mon, 27 Aug 2012 05:18:56 +0200
parent 800:966993356d2b
child 903:8a1beff848c1
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Sun Aug 26 23:34:36 2012 +0000
+++ b/mod_mam/mod_mam.lua	Mon Aug 27 05:18:56 2012 +0200
@@ -128,7 +128,7 @@
 
 		if qstart or qend then -- Validate timestamps
 			local vstart, vend = (qstart and timestamp_parse(qstart)), (qend and timestamp_parse(qend))
-			if (qstart and not qwith) or (qend and not vend) then
+			if (qstart and not vstart) or (qend and not vend) then
 				origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid timestamp"))
 				return true
 			end