changeset 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 75838904791e
children 040e4876dee3
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);