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 | 19549a6976ecd52f9ab080bf02f7aee357441087 (patch) | |
tree | b9b8757d7a58b39a95428921444388d6ace9ddb9 /util | |
parent | b0616dd198c00f823dd982a80781787d98166cbe (diff) | |
download | prosody-19549a6976ecd52f9ab080bf02f7aee357441087.tar.gz prosody-19549a6976ecd52f9ab080bf02f7aee357441087.zip |
util.pluginloader: Look for top level mod_something.lua in luarocks-style tree
Diffstat (limited to 'util')
-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; }; |