Mercurial > prosody-hg
comparison util/pluginloader.lua @ 12255:a3ad9cf740d6
util.pluginloader: Fix method to return any module metadata (luacheck)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 04 Feb 2022 15:04:20 +0000 |
| parents | 21ed12cfe300 |
| children | 05c250fa335a |
comparison
equal
deleted
inserted
replaced
| 12254:5b0c8e499288 | 12255:a3ad9cf740d6 |
|---|---|
| 80 end | 80 end |
| 81 end | 81 end |
| 82 local path = err; | 82 local path = err; |
| 83 local f, err = envload(content, "@"..path, env); | 83 local f, err = envload(content, "@"..path, env); |
| 84 if not f then return f, err; end | 84 if not f then return f, err; end |
| 85 return f, path; | 85 return f, path, metadata; |
| 86 end | 86 end |
| 87 | 87 |
| 88 local function init(options) | 88 local function init(options) |
| 89 return setmetatable({ | 89 return setmetatable({ |
| 90 _options = options or {}; | 90 _options = options or {}; |
