Changeset

808:ba2e207e1fb7

mod_mam: Fix variable name, blame autocomplete
author Kim Alvefur <zash@zash.se>
date Mon, 27 Aug 2012 05:18:56 +0200
parents 807:7d1d3ca31d03
children 809:1d51c5e38faa
files mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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