diff options
| author | 2020-12-20 03:04:21 +0000 | |
|---|---|---|
| committer | 2020-12-20 03:05:29 +0000 | |
| commit | 6cfabb0064cab52bbbab59974e53dc0fa1954da7 (patch) | |
| tree | aa755e92103730ba6428332b4094578cde91cc67 /src/configreader.cpp | |
| parent | Fix an inverted condition in the previous commit. (diff) | |
Hide the server name/desc better when <options:hideserver> is set.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index b258d93fc..f96836507 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -335,7 +335,7 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current) } } -static std::string GetServerName() +static std::string GetServerHost() { #ifndef _WIN32 char hostname[256]; @@ -359,7 +359,7 @@ void ServerConfig::Fill() ConfigTag* server = ConfValue("server"); if (sid.empty()) { - ServerName = server->getString("name", GetServerName(), InspIRCd::IsHost); + ServerName = server->getString("name", GetServerHost(), InspIRCd::IsHost); sid = server->getString("id"); if (!sid.empty() && !InspIRCd::IsSID(sid)) |
