# HG changeset patch # User Link Mauve # Date 1769951354 -3600 # Node ID 547feb8181ebd6d33b96b21a4872f33ac8967152 # Parent 75838904791ef193d741a28dfe5ad510335e0263 mod_firewall: Use util.time instead of prosody.util.time, for 0.12 compatibility diff -r 75838904791e -r 547feb8181eb mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Sun Feb 01 14:09:07 2026 +0100 +++ b/mod_firewall/mod_firewall.lua Sun Feb 01 14:09:14 2026 +0100 @@ -204,7 +204,7 @@ end return table.concat(defs, " "); end, depends = { "date_time" }; }; - timestamp = { global_code = [[local get_time = require "prosody.util.time".now;]]; local_code = [[local current_timestamp = get_time();]]; }; + timestamp = { global_code = [[local get_time = require "util.time".now;]]; local_code = [[local current_timestamp = get_time();]]; }; globalthrottle = { global_code = function (throttle) assert(idsafe(throttle), "Invalid rate limit name: "..throttle);