aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-11 14:27:28 +0200
committerKim Alvefur <zash@zash.se>2020-10-11 14:27:28 +0200
commitbee9a3d1994caf188e149a695bae3073361a2608 (patch)
tree01fc965a4cfbabaded1842dc73cc097a8da7425d /core
parentf7b985822930ca7b6e8605173ac92ae80b28436a (diff)
downloadprosody-bee9a3d1994caf188e149a695bae3073361a2608.tar.gz
prosody-bee9a3d1994caf188e149a695bae3073361a2608.zip
core.modulemanager: Fix error if installer path missing
Happens if run outside prosody. Noticed because because the storage tests fail.
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index b89c82d7..3f4233e6 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -199,7 +199,7 @@ local function do_load_module(host, module_name, state)
api_instance.path = err;
local custom_plugins = prosody.paths.installer;
- if err:sub(1, #custom_plugins+1) == custom_plugins.."/" then
+ if custom_plugins and err:sub(1, #custom_plugins+1) == custom_plugins.."/" then
-- Stage 1: Make it work (you are here)
-- Stage 2: Make it less hacky (TODO)
local manifest = {};