Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
807:7d1d3ca31d03 | 808:ba2e207e1fb7 |
---|---|
126 module:log("debug", "Archive query, id %s with %s from %s until %s)", | 126 module:log("debug", "Archive query, id %s with %s from %s until %s)", |
127 tostring(qid), qwith or "anyone", qstart or "the dawn of time", qend or "now"); | 127 tostring(qid), qwith or "anyone", qstart or "the dawn of time", qend or "now"); |
128 | 128 |
129 if qstart or qend then -- Validate timestamps | 129 if qstart or qend then -- Validate timestamps |
130 local vstart, vend = (qstart and timestamp_parse(qstart)), (qend and timestamp_parse(qend)) | 130 local vstart, vend = (qstart and timestamp_parse(qstart)), (qend and timestamp_parse(qend)) |
131 if (qstart and not qwith) or (qend and not vend) then | 131 if (qstart and not vstart) or (qend and not vend) then |
132 origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid timestamp")) | 132 origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid timestamp")) |
133 return true | 133 return true |
134 end | 134 end |
135 qstart, qend = vstart, vend; | 135 qstart, qend = vstart, vend; |
136 end | 136 end |