prosody: Add config option plugin_path to allow overriding plugin directories.
authorWaqas Hussain <waqas20@gmail.com>
Fri, 21 Jan 2011 04:36:31 +0500
changeset 4122 2e4bc196fd2a
parent 4121 ea7e3f22f898
child 4126 5044698a9d90
prosody: Add config option plugin_path to allow overriding plugin directories.
prosody
--- 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 };