summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 0aedb874d..fa12648aa 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -691,7 +691,7 @@ void ServerConfig::ApplyModules(User* user)
{
const std::string& modname = i->first;
// Don't remove core_*.so, just remove m_*.so
- if (modname.c_str()[0] == 'c')
+ if (InspIRCd::Match(modname, "core_*.so", ascii_case_insensitive_map))
continue;
if (ServerInstance->Modules->Unload(i->second))
{