aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-10-25 22:40:13 +0100
committerGravatar Sadie Powell2021-10-25 23:02:28 +0100
commitbeaae760bd7fb0afa05bc3fd7682e085b14b2930 (patch)
tree0b24ff90cc345b6869840dd610ae47935c094cfe /src/users.cpp
parentRespect <security:hideserver> in the 005 numeric. (diff)
Add Server::GetPublicName(), fix not respecting <security:hideserver>.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 60014d297..4e91c31d1 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1249,14 +1249,12 @@ void User::WriteNotice(const std::string& text)
const std::string& FakeUser::GetFullHost()
{
- if (!ServerInstance->Config->HideServer.empty())
- return ServerInstance->Config->HideServer;
- return server->GetName();
+ return server->GetPublicName();
}
const std::string& FakeUser::GetFullRealHost()
{
- return GetFullHost();
+ return server->GetPublicName();
}
ConnectClass::ConnectClass(ConfigTag* tag, char t, const std::string& mask)