aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index d0a8408c3..1107d8e7d 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -565,7 +565,7 @@ void ModuleManager::DelService(ServiceProvider& item)
switch (item.service)
{
case SERVICE_MODE:
- if (!ServerInstance->Modes->DelMode(static_cast<ModeHandler*>(&item)))
+ if (!ServerInstance->Modes.DelMode(static_cast<ModeHandler*>(&item)))
throw ModuleException("Mode "+std::string(item.name)+" does not exist.");
// Fall through
case SERVICE_DATA: