diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-05 20:56:53 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-05 20:56:53 +0200 |
commit | 1e7854e4b53be4a2abd550a265318d5bfbb4240e (patch) | |
tree | b9b8757d7a58b39a95428921444388d6ace9ddb9 /util/pluginloader.lua | |
parent | 753ba4a8f2dbb2fe7d25121fafa28180ea3d6972 (diff) | |
download | prosody-1e7854e4b53be4a2abd550a265318d5bfbb4240e.tar.gz prosody-1e7854e4b53be4a2abd550a265318d5bfbb4240e.zip |
util.pluginloader: Look for top level mod_something.lua in luarocks-style tree
Diffstat (limited to 'util/pluginloader.lua')
-rw-r--r-- | util/pluginloader.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/pluginloader.lua b/util/pluginloader.lua index 1cebe436..5af5084d 100644 --- a/util/pluginloader.lua +++ b/util/pluginloader.lua @@ -42,6 +42,7 @@ local function load_resource(plugin, resource) "mod_"..plugin..dir_sep..resource; -- mod_hello/mod_hello.lua plugin..dir_sep..resource; -- hello/mod_hello.lua resource; -- mod_hello.lua + "share"..dir_sep.."lua"..dir_sep..lua_version..dir_sep..resource; "share"..dir_sep.."lua"..dir_sep..lua_version..dir_sep.."mod_"..plugin..dir_sep..resource; }; |