Comparison

mod_http_muc_log/mod_http_muc_log.lua @ 2845:0de6ed2ae9bd

mod_http_muc_log: Check that there are timestamps to work with
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 00:48:05 +0100
parent 2844:9fac07bba402
child 2846:7eb23a4e7fde
comparison
equal deleted inserted replaced
2844:9fac07bba402 2845:0de6ed2ae9bd
243 end 243 end
244 end 244 end
245 elseif lazy then 245 elseif lazy then
246 next_when = datetime.date(day_start + 86400); 246 next_when = datetime.date(day_start + 86400);
247 prev_when = datetime.date(day_start - 86400); 247 prev_when = datetime.date(day_start - 86400);
248 else 248 elseif first and last then
249 249
250 module:log("debug", "Find next date with messages"); 250 module:log("debug", "Find next date with messages");
251 next_when = find_once(room, { after = last }, 3); 251 next_when = find_once(room, { after = last }, 3);
252 if next_when then 252 if next_when then
253 next_when = datetime.date(next_when); 253 next_when = datetime.date(next_when);