Software / code / prosody
Diff
plugins/mod_register_limits.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 24 Mar 2023 13:15:28 +0100 |
| parent | 11807:f5295e59ca78 |
| child | 13209:c8d949cf6b09 |
line wrap: on
line diff
--- a/plugins/mod_register_limits.lua Fri Mar 17 18:03:07 2023 +0100 +++ b/plugins/mod_register_limits.lua Fri Mar 24 13:15:28 2023 +0100 @@ -7,13 +7,13 @@ -- -local create_throttle = require "util.throttle".create; -local new_cache = require "util.cache".new; -local ip_util = require "util.ip"; +local create_throttle = require "prosody.util.throttle".create; +local new_cache = require "prosody.util.cache".new; +local ip_util = require "prosody.util.ip"; local new_ip = ip_util.new_ip; local match_ip = ip_util.match; local parse_cidr = ip_util.parse_cidr; -local errors = require "util.error"; +local errors = require "prosody.util.error"; -- COMPAT drop old option names local min_seconds_between_registrations = module:get_option_number("min_seconds_between_registrations");