aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-04-07 01:15:40 +0100
committerGravatar Sadie Powell2026-04-07 01:15:40 +0100
commit6181df8cb4133b30097d5d5dd785f69220552a03 (patch)
treeacffaac39f6b874d4ec518254662cf6d734a2a81 /src/modules.cpp
parentAlso define NDEBUG for build type 3. (diff)
Rename DLL_EXTENSION to INSPIRCD_MODULE_EXT.
This will be in config.h when we switch to CMake so I'm renaming it now to reduce the diff size of the CMake commit.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 0f53fd7b5..0bb197eff 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -615,21 +615,21 @@ Service::Provider* ModuleManager::FindService(const std::string& type, const std
std::string ModuleManager::ExpandModName(const std::string& modname)
{
- const static size_t extlen = strlen(DLL_EXTENSION);
+ const static size_t extlen = strlen(INSPIRCD_MODULE_EXT);
std::string fullname;
if (modname.compare(0, 5, "core_") != 0 && modname.compare(0, 2, "m_") != 0)
fullname.append("m_");
fullname.append(modname);
- if (modname.length() < extlen || modname.compare(modname.size() - extlen, extlen, DLL_EXTENSION) != 0)
- fullname.append(DLL_EXTENSION);
+ if (modname.length() < extlen || modname.compare(modname.size() - extlen, extlen, INSPIRCD_MODULE_EXT) != 0)
+ fullname.append(INSPIRCD_MODULE_EXT);
return fullname;
}
std::string ModuleManager::ShrinkModName(const std::string& modname)
{
- const static size_t extlen = strlen(DLL_EXTENSION);
+ const static size_t extlen = strlen(INSPIRCD_MODULE_EXT);
size_t startpos = modname.compare(0, 2, "m_", 2) ? 0 : 2;
- size_t endpos = modname.length() < extlen || modname.compare(modname.length() - extlen, extlen, DLL_EXTENSION, extlen) ? 0 : extlen;
+ size_t endpos = modname.length() < extlen || modname.compare(modname.length() - extlen, extlen, INSPIRCD_MODULE_EXT, extlen) ? 0 : extlen;
return modname.substr(startpos, modname.length() - endpos - startpos);
}