diff options
| author | 2026-03-06 01:16:49 +0000 | |
|---|---|---|
| committer | 2026-03-06 01:16:49 +0000 | |
| commit | 3b60159b3274edcb9e358849ad0ca92a10dfd803 (patch) | |
| tree | 575bc8d3ca47220a7ccde0f695c03696e19d8afc /src/mode.cpp | |
| parent | Convert the dnsbl and gateway modules to use standard replies. (diff) | |
| download | inspircd++-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.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() |
