comparison mod_http_muc_log/mod_http_muc_log.lua @ 2846:7eb23a4e7fde

mod_http_muc_log: Generate empty pages in lazy mode, so that one can navigate past quiet days
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 10:30:35 +0100
parents 0de6ed2ae9bd
children f69a2e97d912
comparison
equal deleted inserted replaced
2845:0de6ed2ae9bd 2846:7eb23a4e7fde
228 }, i + 1; 228 }, i + 1;
229 end 229 end
230 first = first or key; 230 first = first or key;
231 last = key; 231 last = key;
232 end 232 end
233 if i == 1 then return end -- No items 233 if i == 1 and not lazy then return end -- No items
234 234
235 local next_when, prev_when = "", ""; 235 local next_when, prev_when = "", "";
236 local date_list = archive.dates and archive:dates(room); 236 local date_list = archive.dates and archive:dates(room);
237 if date_list then 237 if date_list then
238 for j = 1, #date_list do 238 for j = 1, #date_list do