aboutsummaryrefslogtreecommitdiffstats
path: root/util/pluginloader.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-02-04 15:04:20 +0000
committerMatthew Wild <mwild1@gmail.com>2022-02-04 15:04:20 +0000
commit018c618a3f43a893d178c773176c2ef3f6aefde6 (patch)
tree99d497c51425e5900b7fe3814c02326ff42dc249 /util/pluginloader.lua
parent61d33dd36446c1a6d801c1d3781c4051641af615 (diff)
downloadprosody-018c618a3f43a893d178c773176c2ef3f6aefde6.tar.gz
prosody-018c618a3f43a893d178c773176c2ef3f6aefde6.zip
util.pluginloader: Fix method to return any module metadata (luacheck)
Diffstat (limited to 'util/pluginloader.lua')
-rw-r--r--util/pluginloader.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pluginloader.lua b/util/pluginloader.lua
index b7f8bad2..77f893b4 100644
--- a/util/pluginloader.lua
+++ b/util/pluginloader.lua
@@ -82,7 +82,7 @@ function pluginloader_methods:load_code_ext(plugin, resource, extension, env)
local path = err;
local f, err = envload(content, "@"..path, env);
if not f then return f, err; end
- return f, path;
+ return f, path, metadata;
end
local function init(options)