aboutsummaryrefslogtreecommitdiffstats
path: root/main.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-23 04:56:46 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-23 04:56:46 +0000
commit21df2699e2ffd587a014c9c345ca1161d6a4fc5c (patch)
tree43b2d3605afc1d5a84109d0d827af5e4cfc17c2d /main.lua
parent63554918e90c5f711e199c6fd08021a1944b866f (diff)
downloadprosody-21df2699e2ffd587a014c9c345ca1161d6a4fc5c.tar.gz
prosody-21df2699e2ffd587a014c9c345ca1161d6a4fc5c.zip
Only start console if it is enabled in the config. Note that the exact option is going to change tomorrow.
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 3 insertions, 1 deletions
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");