Software /
code /
prosody
Comparison
core/modulemanager.lua @ 8717:9ddd0fbbe53a
core: Use prosody.hosts instead of _G.hosts for consistency
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 29 Mar 2018 16:58:06 +0200 |
parent | 8555:4f0f5b49bb03 |
child | 8916:e727747279a0 |
comparison
equal
deleted
inserted
replaced
8716:2f3b08ad9b8a | 8717:9ddd0fbbe53a |
---|---|
13 local set = require "util.set"; | 13 local set = require "util.set"; |
14 | 14 |
15 local new_multitable = require "util.multitable".new; | 15 local new_multitable = require "util.multitable".new; |
16 local api = require "core.moduleapi"; -- Module API container | 16 local api = require "core.moduleapi"; -- Module API container |
17 | 17 |
18 local hosts = hosts; | |
19 local prosody = prosody; | 18 local prosody = prosody; |
19 local hosts = prosody.hosts; | |
20 | 20 |
21 local xpcall = xpcall; | 21 local xpcall = xpcall; |
22 local setmetatable, rawget = setmetatable, rawget; | 22 local setmetatable, rawget = setmetatable, rawget; |
23 local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert; | 23 local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert; |
24 | 24 |