Software /
code /
prosody
Diff
main.lua @ 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 |
parent | 382:9daf1e3d278e |
child | 406:11f176cae9da |
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");