# HG changeset patch # User Kim Alvefur # Date 1511221685 -3600 # Node ID 0de6ed2ae9bdab8b794ca11e226155ebc831411b # Parent 9fac07bba40280174602274508a3bf12b0ab762f mod_http_muc_log: Check that there are timestamps to work with diff -r 9fac07bba402 -r 0de6ed2ae9bd mod_http_muc_log/mod_http_muc_log.lua --- a/mod_http_muc_log/mod_http_muc_log.lua Tue Nov 21 00:46:00 2017 +0100 +++ b/mod_http_muc_log/mod_http_muc_log.lua Tue Nov 21 00:48:05 2017 +0100 @@ -245,7 +245,7 @@ elseif lazy then next_when = datetime.date(day_start + 86400); prev_when = datetime.date(day_start - 86400); - else + elseif first and last then module:log("debug", "Find next date with messages"); next_when = find_once(room, { after = last }, 3);