aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-06 01:16:49 +0000
committerGravatar Sadie Powell2026-03-06 01:16:49 +0000
commit3b60159b3274edcb9e358849ad0ca92a10dfd803 (patch)
tree575bc8d3ca47220a7ccde0f695c03696e19d8afc /src/mode.cpp
parentConvert the dnsbl and gateway modules to use standard replies. (diff)
downloadinspircd++-3b60159b3274edcb9e358849ad0ca92a10dfd803.tar.gz
inspircd++-3b60159b3274edcb9e358849ad0ca92a10dfd803.tar.bz2
inspircd++-3b60159b3274edcb9e358849ad0ca92a10dfd803.zip
Fix unnecessarily calculating the service name for modes.
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp3
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()