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 4084257e5..8d705f0ca 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1230,7 +1230,7 @@ void ServerConfig::ApplyModules(User* user)
for (std::set<std::string>::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++)
{
// Don't remove cmd_*.so, just remove m_*.so
- if (removing[0] == 'c')
+ if (removing->c_str()[0] == 'c')
continue;
if (ServerInstance->Modules->Unload(removing->c_str()))
{