21 local error, setmetatable, type = error, setmetatable, type; |
21 local error, setmetatable, type = error, setmetatable, type; |
22 local ipairs, pairs, select = ipairs, pairs, select; |
22 local ipairs, pairs, select = ipairs, pairs, select; |
23 local tonumber, tostring = tonumber, tostring; |
23 local tonumber, tostring = tonumber, tostring; |
24 local require = require; |
24 local require = require; |
25 local pack = table.pack or function(...) return {n=select("#",...), ...}; end -- table.pack is only in 5.2 |
25 local pack = table.pack or function(...) return {n=select("#",...), ...}; end -- table.pack is only in 5.2 |
26 local unpack = table.unpack or unpack; -- renamed in 5.2 |
26 local unpack = table.unpack or unpack; --luacheck: ignore 113 -- renamed in 5.2 |
27 |
27 |
28 local prosody = prosody; |
28 local prosody = prosody; |
29 local hosts = prosody.hosts; |
29 local hosts = prosody.hosts; |
30 |
30 |
31 -- FIXME: This assert() is to try and catch an obscure bug (2013-04-05) |
31 -- FIXME: This assert() is to try and catch an obscure bug (2013-04-05) |