* Move login servers to core/servers/login

* A bit of minor changes related to upcoming file areas --- will likely branch before anything major
* Clean up database.js a bit
This commit is contained in:
Bryan Ashby
2016-09-19 21:28:21 -06:00
parent 34474bc610
commit caa9137162
5 changed files with 293 additions and 1289 deletions

View File

@@ -223,15 +223,14 @@ function initialize(cb) {
}
function startListening(cb) {
if(!conf.config.servers) {
if(!conf.config.loginServers) {
// :TODO: Log error ... output to stderr as well. We can do it all with the logger
//logger.log.error('No servers configured');
return cb(new Error('No servers configured'));
return cb(new Error('No login servers configured'));
}
const moduleUtil = require('./module_util.js'); // late load so we get Config
moduleUtil.loadModulesForCategory('servers', (err, module) => {
moduleUtil.loadModulesForCategory('loginServers', (err, module) => {
if(err) {
if('EENIGMODDISABLED' === err.code) {
logger.log.debug(err.message);