39 host = host, s2sout = {}, events = events_new(), |
39 host = host, s2sout = {}, events = events_new(), |
40 disallow_s2s = configmanager.get(host, "core", "disallow_s2s") |
40 disallow_s2s = configmanager.get(host, "core", "disallow_s2s") |
41 or (configmanager.get(host, "core", "anonymous_login") |
41 or (configmanager.get(host, "core", "anonymous_login") |
42 and (configmanager.get(host, "core", "disallow_s2s") ~= false)) |
42 and (configmanager.get(host, "core", "disallow_s2s") ~= false)) |
43 }; |
43 }; |
|
44 for option_name in pairs(host_config.core) do |
|
45 if option_name:match("_ports$") then |
|
46 log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in global Host \"*\" instead", host, option_name); |
|
47 end |
|
48 end |
44 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); |
49 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); |
45 eventmanager.fire_event("host-activated", host, host_config); |
50 eventmanager.fire_event("host-activated", host, host_config); |
46 end |
51 end |
47 |
52 |
48 function deactivate(host) |
53 function deactivate(host) |