Only start console if it is enabled in the config. Note that the exact option is going to change tomorrow.

Sun, 23 Nov 2008 04:56:46 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 23 Nov 2008 04:56:46 +0000
changeset 383
32b586d9e915
parent 382
9daf1e3d278e
child 390
160d69c6eb89

Only start console if it is enabled in the config. Note that the exact option is going to change tomorrow.

main.lua file | annotate | diff | comparison | revisions
--- 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");
 

mercurial