diff options
author | Kim Alvefur <zash@zash.se> | 2018-04-06 16:50:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-04-06 16:50:51 +0200 |
commit | 6f810e2837f21873681b29778dd6a1553f6f3f45 (patch) | |
tree | 12415e4c6525bd8046bbf6d542af7000c98714e0 /util | |
parent | c48d8cf263ba7938683263525bc91930bcb19cf1 (diff) | |
download | prosody-6f810e2837f21873681b29778dd6a1553f6f3f45.tar.gz prosody-6f810e2837f21873681b29778dd6a1553f6f3f45.zip |
util.startup: Fix traceback due to both plugin path becoming nil if plugin_paths is unset
Diffstat (limited to 'util')
-rw-r--r-- | util/startup.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index 93d91caf..a7ed333a 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -220,8 +220,8 @@ function startup.setup_plugindir() -- path1;path2;path3;defaultpath... -- luacheck: ignore 111 CFG_PLUGINDIR = table.concat(custom_plugin_paths, path_sep)..path_sep..(CFG_PLUGINDIR or "plugins"); + prosody.paths.plugins = CFG_PLUGINDIR; end - prosody.paths.plugins = CFG_PLUGINDIR; end function startup.chdir() |