diff options
author | Adam <Adam@anope.org> | 2010-08-02 01:17:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-02 01:17:50 -0400 |
commit | 15a0f998a74941655e71e35b632054f504254aa7 (patch) | |
tree | 426d067e58cab50f929f5d2dc5a7d7533867edb8 /src/init.cpp | |
parent | 52585493050087f04caf1d8a6c6dabdddbb9a2ed (diff) |
Log an error message if we are unable to load the socket engine module, and changed the default engine to be select
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 811981a32..e64a622d9 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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; } |