Comparison

core/hostmanager.lua @ 1487:66f18c18befa

Merge with main branch.
author Tobias Markmann <tm@ayena.de>
date Sun, 05 Jul 2009 19:05:25 +0200
parent 1467:fc420e9585c2
child 1522:569d58d21612
comparison
equal deleted inserted replaced
1486:3e04efa8af7e 1487:66f18c18befa
25 end 25 end
26 26
27 eventmanager.add_event_hook("server-starting", load_enabled_hosts); 27 eventmanager.add_event_hook("server-starting", load_enabled_hosts);
28 28
29 function activate(host, host_config) 29 function activate(host, host_config)
30 hosts[host] = {type = "local", connected = true, sessions = {}, host = host, s2sout = {}, events = events_new() }; 30 hosts[host] = {type = "local", connected = true, sessions = {},
31 host = host, s2sout = {}, events = events_new(),
32 disallow_s2s = configmanager.get(host, "core", "disallow_s2s")
33 or (configmanager.get(host, "core", "anonymous_login")
34 and (configmanager.get(host, "core", "disallow_s2s") ~= false))
35 };
31 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); 36 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host);
32 eventmanager.fire_event("host-activated", host, host_config); 37 eventmanager.fire_event("host-activated", host, host_config);
33 end 38 end
34 39
35 function deactivate(host) 40 function deactivate(host)