configmanager: Fix so unset variables are searched for in the global section
[prosody.git] / prosody
diff --git a/prosody b/prosody
index 00fde04cd4243410d5032835493085e460dac0d0..5802c348ee68995331e36b9969802ad73ef5a369 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -132,8 +132,8 @@ end
 function sanity_check()
        for host, host_config in pairs(config.getconfig()) do
                if host ~= "*"
-               and host_config.core.enabled ~= false
-               and not host_config.core.component_module then
+               and host_config.enabled ~= false
+               and not host_config.component_module then
                        return;
                end
        end
@@ -198,6 +198,7 @@ function set_function_metatable()
 end
 
 function init_global_state()
+       -- COMPAT: These globals are deprecated
        bare_sessions = {};
        full_sessions = {};
        hosts = {};