util.startup: Ensure import() is available in prosodyctl (thanks keyzer)

Fixes error in mod_authz_internal due to import() being unavailable as
it was only loaded in Prosody proper
This commit is contained in:
Kim Alvefur 2022-10-20 16:31:18 +02:00
parent bca11bfc73
commit bab0635179

View file

@ -132,6 +132,7 @@ end
function startup.load_libraries()
-- Load socket framework
-- luacheck: ignore 111/server 111/socket
require "util.import"
socket = require "socket";
server = require "net.server"
end
@ -359,7 +360,6 @@ end
function startup.load_secondary_libraries()
--- Load and initialise core modules
require "util.import"
require "util.xmppstream"
require "core.stanza_router"
require "core.statsmanager"