From 3b927b48ccb30619d9ace318b5a7d21f2279abbf Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 18 Oct 2017 04:00:04 +0100 Subject: Ignore tags for modules that are already loaded. This allows us to do user friendly things like loading the alias module in the example alias files. --- src/configreader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/configreader.cpp') 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::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()); -- cgit v1.3.1-10-gc9f91