util.startup: Fix traceback due to both plugin path becoming nil if plugin_paths is unset
authorKim Alvefur <zash@zash.se>
Fri, 06 Apr 2018 16:50:51 +0200
changeset 8736 6a234e77c99f
parent 8735 863f66cdd1df
child 8737 36d49a9c5e88
util.startup: Fix traceback due to both plugin path becoming nil if plugin_paths is unset
util/startup.lua
--- 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()