Software /
code /
prosody-modules
Changeset
1564:cb4111a4cd36
mod_http_muc_log: Remove infinity limit
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 09 Nov 2014 20:19:36 +0100 |
parents | 1563:49ba05d75119 |
children | 1565:f9cb09d451c7 |
files | mod_http_muc_log/mod_http_muc_log.lua |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua Sun Nov 09 17:18:51 2014 +0100 +++ b/mod_http_muc_log/mod_http_muc_log.lua Sun Nov 09 20:19:36 2014 +0100 @@ -256,7 +256,6 @@ local iter, err = archive:find(room, { ["start"] = datetime.parse(date.."T00:00:00Z"); ["end"] = datetime.parse(date.."T23:59:59Z"); - limit = math.huge; -- with = "message<groupchat"; }); if not iter then return 500; end @@ -291,7 +290,6 @@ module:log("debug", "Find next date with messages"); for key, message, when in archive:find(room, { ["start"] = datetime.parse(date.."T00:00:00Z") + 86400; - limit = math.huge; }) do next_when = datetime.date(when); module:log("debug", "Next message: %s", datetime.datetime(when)); @@ -301,7 +299,6 @@ module:log("debug", "Find prev date with messages"); for key, message, when in archive:find(room, { ["end"] = datetime.parse(date.."T00:00:00Z") - 1; - limit = math.huge; reverse = true; }) do prev_when = datetime.date(when);