# HG changeset patch # User Kim Alvefur # Date 1511221560 -3600 # Node ID 9fac07bba40280174602274508a3bf12b0ab762f # Parent 53a76c994fc3f2462bbe27e9f47db06c7387c269 mod_http_muc_log: Lazy nex/prev link generation diff -r 53a76c994fc3 -r 9fac07bba402 mod_http_muc_log/mod_http_muc_log.lua --- a/mod_http_muc_log/mod_http_muc_log.lua Tue Nov 21 00:45:23 2017 +0100 +++ b/mod_http_muc_log/mod_http_muc_log.lua Tue Nov 21 00:46:00 2017 +0100 @@ -242,6 +242,9 @@ break; end end + elseif lazy then + next_when = datetime.date(day_start + 86400); + prev_when = datetime.date(day_start - 86400); else module:log("debug", "Find next date with messages");