diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-02-04 14:11:46 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-02-04 14:11:46 +0000 |
commit | 4bdff5a4529443c19df04f16ee35939ef324f516 (patch) | |
tree | 5afea32ca250c285372ed73754c42ddeb78020a5 /core/moduleapi.lua | |
parent | fdfaff07e0a21e457e6c206c9e269f63efcac256 (diff) | |
download | prosody-4bdff5a4529443c19df04f16ee35939ef324f516.tar.gz prosody-4bdff5a4529443c19df04f16ee35939ef324f516.zip |
modulemanager, moduleapi: Switch to new pluginloader interface
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r-- | core/moduleapi.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 24d99c69..071dabc2 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -10,7 +10,6 @@ local array = require "util.array"; local set = require "util.set"; local it = require "util.iterators"; local logger = require "util.logger"; -local pluginloader = require "util.pluginloader"; local timer = require "util.timer"; local resolve_relative_path = require"util.paths".resolve_relative_path; local st = require "util.stanza"; @@ -129,7 +128,8 @@ function api:wrap_global(event, handler) end function api:require(lib) - local f, n = pluginloader.load_code_ext(self.name, lib, "lib.lua", self.environment); + local modulemanager = require"core.modulemanager"; + local f, n = modulemanager.loader:load_code_ext(self.name, lib, "lib.lua", self.environment); if not f then error("Failed to load plugin library '"..lib.."', error: "..n); end -- FIXME better error message return f(); end |