Software /
code /
prosody
Changeset
4155:3c5d6a7f07e1
prosody: Change plugin_path -> plugin_paths and make it an array instead of a string
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 22 Feb 2011 18:02:23 +0000 |
parents | 4154:3785a9bb7f11 |
children | 4156:e3282871dd44 |
files | prosody |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Tue Feb 22 21:47:38 2011 +0500 +++ b/prosody Tue Feb 22 18:02:23 2011 +0000 @@ -184,7 +184,10 @@ 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" + local custom_plugin_paths = config.get("*", "core", "plugin_paths"); + if custom_plugin_paths then + CFG_PLUGINDIR = table.concat(custom_plugin_paths, package.config:sub(3,3)); -- path1;path2;path3 + end prosody.paths = { source = CFG_SOURCEDIR, config = CFG_CONFIGDIR, plugins = CFG_PLUGINDIR, data = data_path };