Software /
code /
prosody
Comparison
util/startup.lua @ 12779:f0474d40364c 0.12
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Oct 2022 16:31:18 +0200 |
parent | 12553:cc0ec0277813 |
child | 12781:22066b02887f |
child | 12863:891edd1ebde6 |
comparison
equal
deleted
inserted
replaced
12760:ce1a0f9bf25a | 12779:f0474d40364c |
---|---|
130 -- luacheck: globals socket server | 130 -- luacheck: globals socket server |
131 | 131 |
132 function startup.load_libraries() | 132 function startup.load_libraries() |
133 -- Load socket framework | 133 -- Load socket framework |
134 -- luacheck: ignore 111/server 111/socket | 134 -- luacheck: ignore 111/server 111/socket |
135 require "util.import" | |
135 socket = require "socket"; | 136 socket = require "socket"; |
136 server = require "net.server" | 137 server = require "net.server" |
137 end | 138 end |
138 | 139 |
139 function startup.init_logging() | 140 function startup.init_logging() |
357 end | 358 end |
358 end | 359 end |
359 | 360 |
360 function startup.load_secondary_libraries() | 361 function startup.load_secondary_libraries() |
361 --- Load and initialise core modules | 362 --- Load and initialise core modules |
362 require "util.import" | |
363 require "util.xmppstream" | 363 require "util.xmppstream" |
364 require "core.stanza_router" | 364 require "core.stanza_router" |
365 require "core.statsmanager" | 365 require "core.statsmanager" |
366 require "core.hostmanager" | 366 require "core.hostmanager" |
367 require "core.portmanager" | 367 require "core.portmanager" |