comparison plugins/mod_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
parents 7d29167bfcc3
children c8d949cf6b09
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
1 -- Because we deal with pre-authed sessions and streams we can't be host-specific 1 -- Because we deal with pre-authed sessions and streams we can't be host-specific
2 module:set_global(); 2 module:set_global();
3 3
4 local filters = require "util.filters"; 4 local filters = require "prosody.util.filters";
5 local throttle = require "util.throttle"; 5 local throttle = require "prosody.util.throttle";
6 local timer = require "util.timer"; 6 local timer = require "prosody.util.timer";
7 local ceil = math.ceil; 7 local ceil = math.ceil;
8 8
9 local limits_cfg = module:get_option("limits", {}); 9 local limits_cfg = module:get_option("limits", {});
10 local limits_resolution = module:get_option_number("limits_resolution", 1); 10 local limits_resolution = module:get_option_number("limits_resolution", 1);
11 11