Comparison

core/usermanager.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 10633:d1cc6af0fb97
comparison
equal deleted inserted replaced
8716:2f3b08ad9b8a 8717:9ddd0fbbe53a
11 local type = type; 11 local type = type;
12 local ipairs = ipairs; 12 local ipairs = ipairs;
13 local jid_bare = require "util.jid".bare; 13 local jid_bare = require "util.jid".bare;
14 local jid_prep = require "util.jid".prep; 14 local jid_prep = require "util.jid".prep;
15 local config = require "core.configmanager"; 15 local config = require "core.configmanager";
16 local hosts = hosts;
17 local sasl_new = require "util.sasl".new; 16 local sasl_new = require "util.sasl".new;
18 local storagemanager = require "core.storagemanager"; 17 local storagemanager = require "core.storagemanager";
19 18
20 local prosody = _G.prosody; 19 local prosody = _G.prosody;
20 local hosts = prosody.hosts;
21 21
22 local setmetatable = setmetatable; 22 local setmetatable = setmetatable;
23 23
24 local default_provider = "internal_plain"; 24 local default_provider = "internal_plain";
25 25