comparison 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
comparison
equal deleted inserted replaced
2499:b8805ab1d470 2500:ec046f915506
188 188
189 if qstart or qend then -- Validate timestamps 189 if qstart or qend then -- Validate timestamps
190 local vstart, vend = (qstart and timestamp_parse(qstart)), (qend and timestamp_parse(qend)) 190 local vstart, vend = (qstart and timestamp_parse(qstart)), (qend and timestamp_parse(qend))
191 if (qstart and not vstart) or (qend and not vend) then 191 if (qstart and not vstart) or (qend and not vend) then
192 origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid timestamp")) 192 origin.send(st.error_reply(stanza, "modify", "bad-request", "Invalid timestamp"))
193 return true 193 return true;
194 end 194 end
195 qstart, qend = vstart, vend; 195 qstart, qend = vstart, vend;
196 end 196 end
197 197
198 -- RSM stuff 198 -- RSM stuff
252 results[count] = fwd_st; 252 results[count] = fwd_st;
253 else 253 else
254 origin.send(fwd_st); 254 origin.send(fwd_st);
255 end 255 end
256 end 256 end
257
257 if reverse then 258 if reverse then
258 for i = #results, 1, -1 do 259 for i = #results, 1, -1 do
259 origin.send(results[i]); 260 origin.send(results[i]);
260 end 261 end
261 end 262 end