Software /
code /
prosody-modules
Diff
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 |
line wrap: on
line diff
--- 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);