summaryrefslogtreecommitdiff
path: root/include/configreader.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configreader.h')
-rw-r--r--include/configreader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 7274dfad8..3a5ea9c60 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -451,6 +451,12 @@ class CoreExport ServerConfig
*/
const std::string& GetSID() const { return sid; }
+ /** Retrieves the server name which should be shown to users. */
+ const std::string& GetServerName() const { return HideServer.empty() ? ServerName : HideServer; }
+
+ /** Retrieves the server description which should be shown to users. */
+ const std::string& GetServerDesc() const { return HideServer.empty() ? ServerDesc : HideServer; }
+
/** Read the entire configuration into memory
* and initialize this class. All other methods
* should be used only by the core.