Comparison

util/template.lua @ 12975:d10957394a3c

util: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:16 +0100
parent 8555:4f0f5b49bb03
comparison
equal deleted inserted replaced
12974:ba409c67353b 12975:d10957394a3c
1 -- luacheck: ignore 213/i 1 -- luacheck: ignore 213/i
2 local stanza_mt = require "util.stanza".stanza_mt; 2 local stanza_mt = require "prosody.util.stanza".stanza_mt;
3 local setmetatable = setmetatable; 3 local setmetatable = setmetatable;
4 local pairs = pairs; 4 local pairs = pairs;
5 local ipairs = ipairs; 5 local ipairs = ipairs;
6 local error = error; 6 local error = error;
7 local envload = require "util.envload".envload; 7 local envload = require "prosody.util.envload".envload;
8 local debug = debug; 8 local debug = debug;
9 local t_remove = table.remove; 9 local t_remove = table.remove;
10 local parse_xml = require "util.xml".parse; 10 local parse_xml = require "prosody.util.xml".parse;
11 11
12 local _ENV = nil; 12 local _ENV = nil;
13 -- luacheck: std none 13 -- luacheck: std none
14 14
15 local function trim_xml(stanza) 15 local function trim_xml(stanza)