aboutsummaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-21 18:12:46 +0100
committerGravatar Sadie Powell2023-07-21 18:12:46 +0100
commite6d342d89ff25747da9fd45e7f04a861ee4d2e54 (patch)
treedff60d04d935930e69e0257aeb839fca42a61d1e /src/usermanager.cpp
parentAdd a typedef for the Template::Replace map. (diff)
Make the X-line quit message format a lot more flexible.
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index db8fe0b5c..c7d22bf0d 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -207,17 +207,9 @@ void UserManager::AddUser(int socket, ListenSocket* via, const irc::sockets::soc
if (!ServerInstance->Config->XLineMessage.empty())
New->WriteNumeric(ERR_YOUREBANNEDCREEP, ServerInstance->Config->XLineMessage);
- if (ServerInstance->Config->HideLines.empty())
- this->QuitUser(New, b->Reason);
- else
- {
- const std::string publicreason = Template::Replace(ServerInstance->Config->HideLines,
- {
- { "reason", b->Reason },
- { "type", b->Type },
- });
- this->QuitUser(New, publicreason, &b->Reason);
- }
+ // IMPORTANT: we don't check XLineQuitPublic here because the only
+ // person who might see the ban at this point is the affected user.
+ this->QuitUser(New, b->Reason);
return;
}
else