From 21df2699e2ffd587a014c9c345ca1161d6a4fc5c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 23 Nov 2008 04:56:46 +0000 Subject: Only start console if it is enabled in the config. Note that the exact option is going to change tomorrow. --- main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index d93ce8f0..f67f3889 100644 --- a/main.lua +++ b/main.lua @@ -88,7 +88,9 @@ end start("xmppclient", { ssl = global_ssl_ctx }) start("xmppserver", { ssl = global_ssl_ctx }) -start("console") +if config.get("*", "core", "console_enabled") then + start("console") +end modulemanager.fire_event("server-started"); -- cgit v1.2.3