diff options
| author | 2020-11-04 13:31:03 +0000 | |
|---|---|---|
| committer | 2020-11-04 13:37:14 +0000 | |
| commit | 2310b03ad503a2712f868d52ce37ec6a3943e261 (patch) | |
| tree | f1fde6b7045d0c545f87809bc2afb3f596f23e4c /src/modules/m_globalload.cpp | |
| parent | Move 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.cpp | 2 |
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; |
