Software /
code /
prosody
Comparison
core/configmanager.lua @ 12972:ead41e25ebc0
core: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:07 +0100 |
parent | 12531:32bcb899526f |
comparison
equal
deleted
inserted
replaced
12971:7214baed9e9d | 12972:ead41e25ebc0 |
---|---|
9 local _G = _G; | 9 local _G = _G; |
10 local setmetatable, rawget, rawset, io, os, error, dofile, type, pairs, ipairs = | 10 local setmetatable, rawget, rawset, io, os, error, dofile, type, pairs, ipairs = |
11 setmetatable, rawget, rawset, io, os, error, dofile, type, pairs, ipairs; | 11 setmetatable, rawget, rawset, io, os, error, dofile, type, pairs, ipairs; |
12 local format, math_max, t_insert = string.format, math.max, table.insert; | 12 local format, math_max, t_insert = string.format, math.max, table.insert; |
13 | 13 |
14 local envload = require"util.envload".envload; | 14 local envload = require"prosody.util.envload".envload; |
15 local deps = require"util.dependencies"; | 15 local deps = require"prosody.util.dependencies"; |
16 local resolve_relative_path = require"util.paths".resolve_relative_path; | 16 local resolve_relative_path = require"prosody.util.paths".resolve_relative_path; |
17 local glob_to_pattern = require"util.paths".glob_to_pattern; | 17 local glob_to_pattern = require"prosody.util.paths".glob_to_pattern; |
18 local path_sep = package.config:sub(1,1); | 18 local path_sep = package.config:sub(1,1); |
19 local get_traceback_table = require "util.debug".get_traceback_table; | 19 local get_traceback_table = require "prosody.util.debug".get_traceback_table; |
20 | 20 |
21 local encodings = deps.softreq"util.encodings"; | 21 local encodings = deps.softreq"prosody.util.encodings"; |
22 local nameprep = encodings and encodings.stringprep.nameprep or function (host) return host:lower(); end | 22 local nameprep = encodings and encodings.stringprep.nameprep or function (host) return host:lower(); end |
23 | 23 |
24 local _M = {}; | 24 local _M = {}; |
25 local _ENV = nil; | 25 local _ENV = nil; |
26 -- luacheck: std none | 26 -- luacheck: std none |