Comparison

core/hostmanager.lua @ 5360:e44cfbf0ae8d

hostmanager: Use prosody.hosts instead of 'hosts' global
author Matthew Wild <mwild1@gmail.com>
date Fri, 22 Mar 2013 11:24:13 +0000
parent 5357:ac530c44772e
child 5361:38e7a5fafb28
comparison
equal deleted inserted replaced
5359:43517e649c53 5360:e44cfbf0ae8d
15 local jid_split = require "util.jid".split; 15 local jid_split = require "util.jid".split;
16 local uuid_gen = require "util.uuid".generate; 16 local uuid_gen = require "util.uuid".generate;
17 17
18 local log = require "util.logger".init("hostmanager"); 18 local log = require "util.logger".init("hostmanager");
19 19
20 local hosts = hosts; 20 local hosts = prosody.hosts;
21 local prosody_events = prosody.events; 21 local prosody_events = prosody.events;
22 if not _G.prosody.incoming_s2s then 22 if not _G.prosody.incoming_s2s then
23 require "core.s2smanager"; 23 require "core.s2smanager";
24 end 24 end
25 local incoming_s2s = _G.prosody.incoming_s2s; 25 local incoming_s2s = _G.prosody.incoming_s2s;