diff options
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index be3707a16..6471413e0 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -726,6 +726,10 @@ void ServerConfig::ApplyModules(User* user) for (std::vector<std::string>::iterator adding = added_modules.begin(); adding != added_modules.end(); adding++) { + // Skip modules which are already loaded. + if (ServerInstance->Modules->Find(*adding)) + continue; + if (ServerInstance->Modules->Load(*adding)) { ServerInstance->SNO->WriteGlobalSno('a', "*** REHASH LOADED MODULE: %s",adding->c_str()); |