Mercurial > prosody-modules
diff mod_firewall/mod_firewall.lua @ 6386:547feb8181eb
mod_firewall: Use util.time instead of prosody.util.time, for 0.12 compatibility
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Sun, 01 Feb 2026 14:09:14 +0100 |
| parents | 81f06628fea4 |
| children | b15601203d0d |
line wrap: on
line diff
--- 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);
