Software /
code /
prosody
Diff
util/pluginloader.lua @ 2325:265441f2ad48
util.pluginloader: Don't specify a host for the plugin data store (clever waqas...)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 05 Dec 2009 13:34:45 +0000 |
parent | 2276:d9302be05f86 |
child | 2925:692b3c6c5bd2 |
line wrap: on
line diff
--- a/util/pluginloader.lua Fri Dec 04 19:04:03 2009 +0000 +++ b/util/pluginloader.lua Sat Dec 05 13:34:45 2009 +0000 @@ -17,7 +17,7 @@ module "pluginloader" local function load_from_datastore(name) - local content = datamanager.load(name, "*", "plugins"); + local content = datamanager.load(name, nil, "plugins"); if not content or not content[1] then return nil, "Resource not found"; end return content[1], name; end @@ -57,7 +57,7 @@ store[k] = v; end end - datamanager.store(plugin.."/"..resource, "*", "plugins", store); + datamanager.store(plugin.."/"..resource, nil, "plugins", store); end function load_code(plugin, resource)