diff options
Diffstat (limited to 'src/mode.cpp')
| -rw-r--r-- | src/mode.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 158e2b465..5496e6457 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -115,8 +115,7 @@ bool ModeHandler::ResolveModeConflict(const std::string& theirs, const std::stri void ModeHandler::RegisterService() { ServerInstance->Modes.AddMode(this); - ServerInstance->Modules.AddReferent(GetModeType() == MODETYPE_CHANNEL ? "ModeHandler/C" : "ModeHandler/U", - this->service_name, this); + ServerInstance->Modules.AddReferent(this->service_type, this->service_name, this); } void ModeHandler::UnregisterService() |
