Diff

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
line wrap: on
line diff
--- a/core/usermanager.lua	Thu Mar 29 16:42:24 2018 +0200
+++ b/core/usermanager.lua	Thu Mar 29 16:58:06 2018 +0200
@@ -13,11 +13,11 @@
 local jid_bare = require "util.jid".bare;
 local jid_prep = require "util.jid".prep;
 local config = require "core.configmanager";
-local hosts = hosts;
 local sasl_new = require "util.sasl".new;
 local storagemanager = require "core.storagemanager";
 
 local prosody = _G.prosody;
+local hosts = prosody.hosts;
 
 local setmetatable = setmetatable;