mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
core: Use prosody.hosts instead of _G.hosts for consistency
This commit is contained in:
parent
8760f89c36
commit
36bdcaa99c
5 changed files with 5 additions and 5 deletions
|
@ -15,8 +15,8 @@ local set = require "util.set";
|
||||||
local new_multitable = require "util.multitable".new;
|
local new_multitable = require "util.multitable".new;
|
||||||
local api = require "core.moduleapi"; -- Module API container
|
local api = require "core.moduleapi"; -- Module API container
|
||||||
|
|
||||||
local hosts = hosts;
|
|
||||||
local prosody = prosody;
|
local prosody = prosody;
|
||||||
|
local hosts = prosody.hosts;
|
||||||
|
|
||||||
local xpcall = xpcall;
|
local xpcall = xpcall;
|
||||||
local setmetatable, rawget = setmetatable, rawget;
|
local setmetatable, rawget = setmetatable, rawget;
|
||||||
|
|
|
@ -15,7 +15,7 @@ local pairs = pairs;
|
||||||
local tostring = tostring;
|
local tostring = tostring;
|
||||||
local type = type;
|
local type = type;
|
||||||
|
|
||||||
local hosts = hosts;
|
local hosts = prosody.hosts;
|
||||||
local bare_sessions = prosody.bare_sessions;
|
local bare_sessions = prosody.bare_sessions;
|
||||||
|
|
||||||
local um_user_exists = require "core.usermanager".user_exists;
|
local um_user_exists = require "core.usermanager".user_exists;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
local tostring, setmetatable = tostring, setmetatable;
|
local tostring, setmetatable = tostring, setmetatable;
|
||||||
local pairs, next= pairs, next;
|
local pairs, next= pairs, next;
|
||||||
|
|
||||||
local hosts = hosts;
|
local hosts = prosody.hosts;
|
||||||
local full_sessions = prosody.full_sessions;
|
local full_sessions = prosody.full_sessions;
|
||||||
local bare_sessions = prosody.bare_sessions;
|
local bare_sessions = prosody.bare_sessions;
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,12 @@ local config = require "core.configmanager";
|
||||||
local datamanager = require "util.datamanager";
|
local datamanager = require "util.datamanager";
|
||||||
local modulemanager = require "core.modulemanager";
|
local modulemanager = require "core.modulemanager";
|
||||||
local multitable = require "util.multitable";
|
local multitable = require "util.multitable";
|
||||||
local hosts = hosts;
|
|
||||||
local log = require "util.logger".init("storagemanager");
|
local log = require "util.logger".init("storagemanager");
|
||||||
local async = require "util.async";
|
local async = require "util.async";
|
||||||
local debug = debug;
|
local debug = debug;
|
||||||
|
|
||||||
local prosody = prosody;
|
local prosody = prosody;
|
||||||
|
local hosts = prosody.hosts;
|
||||||
|
|
||||||
local _ENV = nil;
|
local _ENV = nil;
|
||||||
-- luacheck: std none
|
-- luacheck: std none
|
||||||
|
|
|
@ -13,11 +13,11 @@ local ipairs = ipairs;
|
||||||
local jid_bare = require "util.jid".bare;
|
local jid_bare = require "util.jid".bare;
|
||||||
local jid_prep = require "util.jid".prep;
|
local jid_prep = require "util.jid".prep;
|
||||||
local config = require "core.configmanager";
|
local config = require "core.configmanager";
|
||||||
local hosts = hosts;
|
|
||||||
local sasl_new = require "util.sasl".new;
|
local sasl_new = require "util.sasl".new;
|
||||||
local storagemanager = require "core.storagemanager";
|
local storagemanager = require "core.storagemanager";
|
||||||
|
|
||||||
local prosody = _G.prosody;
|
local prosody = _G.prosody;
|
||||||
|
local hosts = prosody.hosts;
|
||||||
|
|
||||||
local setmetatable = setmetatable;
|
local setmetatable = setmetatable;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue