Comparison

core/sessionmanager.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 8872:4d7a822e837f
comparison
equal deleted inserted replaced
8716:2f3b08ad9b8a 8717:9ddd0fbbe53a
8 -- luacheck: globals prosody.full_sessions prosody.bare_sessions 8 -- luacheck: globals prosody.full_sessions prosody.bare_sessions
9 9
10 local tostring, setmetatable = tostring, setmetatable; 10 local tostring, setmetatable = tostring, setmetatable;
11 local pairs, next= pairs, next; 11 local pairs, next= pairs, next;
12 12
13 local hosts = hosts; 13 local hosts = prosody.hosts;
14 local full_sessions = prosody.full_sessions; 14 local full_sessions = prosody.full_sessions;
15 local bare_sessions = prosody.bare_sessions; 15 local bare_sessions = prosody.bare_sessions;
16 16
17 local logger = require "util.logger"; 17 local logger = require "util.logger";
18 local log = logger.init("sessionmanager"); 18 local log = logger.init("sessionmanager");