Mercurial > prosody-modules
changeset 2235:c5ee48e27d01
mod_http_muc_log: Link to next day with content, regardless of type (simplifes)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Jul 2016 22:39:41 +0200 |
parents | 3024116d6093 |
children | 86bc6e1d9d4d |
files | mod_http_muc_log/mod_http_muc_log.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua Fri Jul 08 22:37:48 2016 +0200 +++ b/mod_http_muc_log/mod_http_muc_log.lua Fri Jul 08 22:39:41 2016 +0200 @@ -96,7 +96,7 @@ module:log("debug", "Find all dates with messages"); local next_day; repeat - local when = find_once(room, { start = next_day; with = "message<groupchat"; }, 3); + local when = find_once(room, { start = next_day; }, 3); if not when then break; end local t = os_date("!*t", when); dates:set(t.year, t.month, t.day, when ); @@ -165,7 +165,6 @@ local iter, err = archive:find(room, { ["start"] = datetime.parse(date.."T00:00:00Z"); ["end"] = datetime.parse(date.."T23:59:59Z"); - -- with = "message<groupchat"; }); if not iter then module:log("warn", "Could not search archive: %s", err or "no error");