aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_globalload.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/modules/m_globalload.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/modules/m_globalload.cpp')
-rw-r--r--src/modules/m_globalload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index e105bc5d6..7828411d7 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -78,7 +78,7 @@ class CommandGunloadmodule : public Command
CmdResult Handle(User* user, const Params& parameters) override
{
- if (InspIRCd::Match(parameters[0], "core_*.so", ascii_case_insensitive_map))
+ if (InspIRCd::Match(parameters[0], "core_*" DLL_EXTENSION, ascii_case_insensitive_map))
{
user->WriteNumeric(ERR_CANTUNLOADMODULE, parameters[0], "You cannot unload core commands!");
return CmdResult::FAILURE;