blob: e6931cce4a03e95f96740ffae90d3853b7a54071 (
plain)
1
2
3
4
5
6
7
8
9
|
for i = #package.searchers, 1, -1 do
local search = package.searchers[i];
table.insert(package.searchers, i, function(module_name)
local lib = module_name:match("^prosody%.(.*)$");
if lib then
return search(lib);
end
end)
end
|