diff prosody @ 4122:2e4bc196fd2a

prosody: Add config option plugin_path to allow overriding plugin directories.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 21 Jan 2011 04:36:31 +0500
parents 38f3dfe88d4f
children 3c5d6a7f07e1
line wrap: on
line diff
--- a/prosody	Fri Jan 21 04:35:49 2011 +0500
+++ b/prosody	Fri Jan 21 04:36:31 2011 +0500
@@ -184,6 +184,7 @@
 	prosody.hosts = hosts;
 	
 	local data_path = config.get("*", "core", "data_path") or CFG_DATADIR or "data";
+	CFG_PLUGINDIR = config.get("*", "core", "plugin_path") or CFG_PLUGINDIR or "plugins"
 	prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR, 
 	                  plugins = CFG_PLUGINDIR, data = data_path };