# HG changeset patch # User Kim Alvefur # Date 1671373802 -3600 # Node ID 7bce75e74f86ad223339dcd5a48fb93926b3cd98 # Parent d2a84e6aed2b48156e0c859543da1311d9960b71# Parent 2b94ee74d1f1961ae8c6112fe38f076044fb1a53 Merge diff -r d2a84e6aed2b -r 7bce75e74f86 mod_audit/mod_audit.lua --- a/mod_audit/mod_audit.lua Fri Dec 16 22:30:47 2022 +0000 +++ b/mod_audit/mod_audit.lua Sun Dec 18 15:30:02 2022 +0100 @@ -1,5 +1,8 @@ module:set_global(); +local audit_log_limit = module:get_option_number("audit_log_limit", 10000); +local cleanup_after = module:get_option_string("audit_log_expires_after", "2w"); + local time_now = os.time; local st = require "util.stanza"; local moduleapi = require "core.moduleapi"; @@ -81,5 +84,3 @@ function moduleapi.audit(module, user, event_type, extra) audit(module.host, user, "mod_" .. module:get_name(), event_type, extra); end - -module:hook("audit", audit, 0); diff -r d2a84e6aed2b -r 7bce75e74f86 mod_http_muc_log/mod_http_muc_log.lua diff -r d2a84e6aed2b -r 7bce75e74f86 mod_http_muc_log/static/style.css diff -r d2a84e6aed2b -r 7bce75e74f86 mod_http_muc_log/static/timestamps.js