aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-11-04 13:31:03 +0000
committerGravatar Sadie Powell2020-11-04 13:37:14 +0000
commit2310b03ad503a2712f868d52ce37ec6a3943e261 (patch)
treef1fde6b7045d0c545f87809bc2afb3f596f23e4c /src/configreader.cpp
parentMove config typedefs to ServerConfig and use auto in more places. (diff)
Initial support for platform-specific module file extensions.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 5fd50252d..dd99f5b92 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -569,8 +569,8 @@ void ServerConfig::ApplyModules(User* user)
for (ModuleManager::ModuleMap::iterator i = removed_modules.begin(); i != removed_modules.end(); ++i)
{
const std::string& modname = i->first;
- // Don't remove core_*.so, just remove m_*.so
- if (InspIRCd::Match(modname, "core_*.so", ascii_case_insensitive_map))
+ // Don't remove core_*, just remove m_*
+ if (InspIRCd::Match(modname, "core_*" DLL_EXTENSION, ascii_case_insensitive_map))
continue;
if (ServerInstance->Modules.Unload(i->second))
{