aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp
index dbc51e37c..46e7d6567 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -162,6 +162,13 @@ std::string UIDGenerator::GetUID()
return current_uid;
}
+const std::string& Server::GetPublicName() const
+{
+ if (!ServerInstance->Config->HideServer.empty())
+ return ServerInstance->Config->HideServer;
+ return GetName();
+}
+
void ISupportManager::AppendValue(std::string& buffer, const std::string& value)
{
// If this token has no value then we have nothing to do.