Software /
code /
prosody
Comparison
util/pluginloader.lua @ 12975:d10957394a3c
util: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:16 +0100 |
parent | 12387:05c250fa335a |
comparison
equal
deleted
inserted
replaced
12974:ba409c67353b | 12975:d10957394a3c |
---|---|
15 path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separators | 15 path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separators |
16 plugin_dir[#plugin_dir + 1] = path; | 16 plugin_dir[#plugin_dir + 1] = path; |
17 end | 17 end |
18 | 18 |
19 local io_open = io.open; | 19 local io_open = io.open; |
20 local envload = require "util.envload".envload; | 20 local envload = require "prosody.util.envload".envload; |
21 | 21 |
22 local pluginloader_methods = {}; | 22 local pluginloader_methods = {}; |
23 local pluginloader_mt = { __index = pluginloader_methods }; | 23 local pluginloader_mt = { __index = pluginloader_methods }; |
24 | 24 |
25 function pluginloader_methods:load_file(names) | 25 function pluginloader_methods:load_file(names) |