aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-20 16:31:18 +0200
committerKim Alvefur <zash@zash.se>2022-10-20 16:31:18 +0200
commitbab0635179f291387505721d2a9acc7f9086d7cd (patch)
treea76e5a2a2c545338c7ec7f8b6412b87787377841 /util
parentbca11bfc73a7ca44daec5854f3c883911bb617ea (diff)
downloadprosody-bab0635179f291387505721d2a9acc7f9086d7cd.tar.gz
prosody-bab0635179f291387505721d2a9acc7f9086d7cd.zip
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
Diffstat (limited to 'util')
-rw-r--r--util/startup.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua
index e2e7db09..10ff1875 100644
--- a/util/startup.lua
+++ b/util/startup.lua
@@ -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"