mod_console: Add missing hosts:list() command
[prosody.git] / prosody
diff --git a/prosody b/prosody
index 00a301fa318a7a2798b5fe220ee6cbf708822616..dc28c771b2cee7c97935e4739b95790df20624c0 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -32,7 +32,7 @@ end
 
 -- Required to be able to find packages installed with luarocks
 pcall(require, "luarocks.require")
-
+require "util.require";
 
 config = require "core.configmanager"
 
@@ -330,8 +330,8 @@ read_version();
 log("info", "Hello and welcome to Prosody version %s", prosody.version);
 load_secondary_libraries();
 init_data_store();
-prepare_to_start();
 init_global_protection();
+prepare_to_start();
 
 eventmanager.fire_event("server-started");
 prosody.events.fire_event("server-started");