Comparison

core/hostmanager.lua @ 5123:7c5c86fa552e

hostmanager, modulemanager: Ensure hosts[*].modules always exists.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 13 Sep 2012 00:32:12 +0500
parent 5081:c0c060e450be
child 5347:32e25358c3c2
comparison
equal deleted inserted replaced
5122:b41c33dc7c36 5123:7c5c86fa552e
73 host = host; 73 host = host;
74 s2sout = {}; 74 s2sout = {};
75 events = events_new(); 75 events = events_new();
76 dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen(); 76 dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen();
77 send = host_send; 77 send = host_send;
78 modules = {};
78 }; 79 };
79 if not host_config.core.component_module then -- host 80 if not host_config.core.component_module then -- host
80 host_session.type = "local"; 81 host_session.type = "local";
81 host_session.sessions = {}; 82 host_session.sessions = {};
82 else -- component 83 else -- component