aboutsummaryrefslogtreecommitdiff
path: root/src/modulemanager.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/modulemanager.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/modulemanager.cpp')
-rw-r--r--src/modulemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp
index db4e5d8ce..e3c220003 100644
--- a/src/modulemanager.cpp
+++ b/src/modulemanager.cpp
@@ -132,7 +132,7 @@ void ModuleManager::LoadCoreModules(std::map<std::string, ServiceList>& servicem
for (auto& entry : std::filesystem::directory_iterator(ServerInstance->Config->Paths.Module))
{
const std::string name = entry.path().filename();
- if (!entry.is_regular_file() || !InspIRCd::Match(name, "core_*.so"))
+ if (!entry.is_regular_file() || !InspIRCd::Match(name, "core_*" DLL_EXTENSION))
continue;
std::cout << "." << std::flush;