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:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user