1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 07:23:13 +02:00

Log an error message if we are unable to load the socket engine module, and changed the default engine to be select

This commit is contained in:
Adam
2010-08-02 01:17:50 -04:00
parent 5258549305
commit 15a0f998a7
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -355,7 +355,11 @@ int init_primary(int ac, char **av)
ModuleManager::LoadModuleList(Config.DBModuleList);
/* Load the socket engine */
ModuleManager::LoadModule(Config.SocketEngine, NULL);
if (ModuleManager::LoadModule(Config.SocketEngine, NULL))
{
Alog(LOG_TERMINAL) << "Unable to load socket engine " << Config.SocketEngine;
return -1;
}
return 0;
}