Don't check for SMTP module on start
This commit is contained in:
@@ -48,12 +48,10 @@ function initServerScripts() {
|
|||||||
// Load all the server data
|
// Load all the server data
|
||||||
loadServerDataFromDatabase();
|
loadServerDataFromDatabase();
|
||||||
setAllServerDataIndexes();
|
setAllServerDataIndexes();
|
||||||
createAllServerElements();
|
|
||||||
|
|
||||||
addAllNetworkEventHandlers();
|
|
||||||
|
|
||||||
checkServerGameTime();
|
checkServerGameTime();
|
||||||
|
createAllServerElements();
|
||||||
|
addAllNetworkEventHandlers();
|
||||||
initAllClients();
|
initAllClients();
|
||||||
initTimers();
|
initTimers();
|
||||||
|
|
||||||
@@ -82,9 +80,9 @@ function checkForMySQLModule() {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function checkForSMTPModule() {
|
function checkForSMTPModule() {
|
||||||
if (typeof module.smtp == "undefined") {
|
//if (typeof module.smtp == "undefined") {
|
||||||
return false;
|
// return false;
|
||||||
}
|
//}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -106,10 +104,10 @@ function checkForAllRequiredModules() {
|
|||||||
thisResource.stop();
|
thisResource.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkForSMTPModule()) {
|
//if (!checkForSMTPModule()) {
|
||||||
logToConsole(LOG_WARN, "[AGRP.Startup]: SMTP Email module is not loaded!");
|
// logToConsole(LOG_WARN, "[AGRP.Startup]: SMTP Email module is not loaded!");
|
||||||
logToConsole(LOG_WARN, "[AGRP.Startup]: Email features will NOT be available!");
|
// logToConsole(LOG_WARN, "[AGRP.Startup]: Email features will NOT be available!");
|
||||||
}
|
//}
|
||||||
|
|
||||||
logToConsole(LOG_DEBUG, "[AGRP.Startup]: All required modules loaded!");
|
logToConsole(LOG_DEBUG, "[AGRP.Startup]: All required modules loaded!");
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user