Don't check for SMTP module on start

This commit is contained in:
Vortrex
2022-09-22 05:23:30 -05:00
parent 338cfb7d38
commit 962281f5f4

View File

@@ -48,12 +48,10 @@ function initServerScripts() {
// Load all the server data
loadServerDataFromDatabase();
setAllServerDataIndexes();
createAllServerElements();
addAllNetworkEventHandlers();
checkServerGameTime();
createAllServerElements();
addAllNetworkEventHandlers();
initAllClients();
initTimers();
@@ -82,9 +80,9 @@ function checkForMySQLModule() {
// ===========================================================================
function checkForSMTPModule() {
if (typeof module.smtp == "undefined") {
return false;
}
//if (typeof module.smtp == "undefined") {
// return false;
//}
return true;
}
@@ -106,10 +104,10 @@ function checkForAllRequiredModules() {
thisResource.stop();
}
if (!checkForSMTPModule()) {
logToConsole(LOG_WARN, "[AGRP.Startup]: SMTP Email module is not loaded!");
logToConsole(LOG_WARN, "[AGRP.Startup]: Email features will NOT be available!");
}
//if (!checkForSMTPModule()) {
// logToConsole(LOG_WARN, "[AGRP.Startup]: SMTP Email module is not loaded!");
// logToConsole(LOG_WARN, "[AGRP.Startup]: Email features will NOT be available!");
//}
logToConsole(LOG_DEBUG, "[AGRP.Startup]: All required modules loaded!");
return true;