Changeset

383:32b586d9e915

Only start console if it is enabled in the config. Note that the exact option is going to change tomorrow.
author Matthew Wild <mwild1@gmail.com>
date Sun, 23 Nov 2008 04:56:46 +0000
parents 382:9daf1e3d278e
children 390:160d69c6eb89
files main.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main.lua	Sun Nov 23 04:54:44 2008 +0000
+++ b/main.lua	Sun Nov 23 04:56:46 2008 +0000
@@ -88,7 +88,9 @@
 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");