Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
382:9daf1e3d278e | 383:32b586d9e915 |
---|---|
86 | 86 |
87 -- start listening on sockets | 87 -- start listening on sockets |
88 start("xmppclient", { ssl = global_ssl_ctx }) | 88 start("xmppclient", { ssl = global_ssl_ctx }) |
89 start("xmppserver", { ssl = global_ssl_ctx }) | 89 start("xmppserver", { ssl = global_ssl_ctx }) |
90 | 90 |
91 start("console") | 91 if config.get("*", "core", "console_enabled") then |
92 start("console") | |
93 end | |
92 | 94 |
93 modulemanager.fire_event("server-started"); | 95 modulemanager.fire_event("server-started"); |
94 | 96 |
95 server.loop(); | 97 server.loop(); |