Mercurial > prosody-hg
diff util/startup.lua @ 8733:6a234e77c99f
util.startup: Fix traceback due to both plugin path becoming nil if plugin_paths is unset
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 06 Apr 2018 16:50:51 +0200 |
| parents | 41c959c5c84b |
| children | 36d49a9c5e88 |
line wrap: on
line diff
--- a/util/startup.lua Fri Apr 06 01:46:14 2018 +0200 +++ b/util/startup.lua Fri Apr 06 16:50:51 2018 +0200 @@ -220,8 +220,8 @@ -- 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()
