From 91c6728eb8cebf060b5a3aaed588a7b6dbf266ad Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 24 Jan 2022 22:49:36 +0100 Subject: [PATCH] Add game name to server status string --- src/server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server.cpp b/src/server.cpp index cff4cc58c..23a7dc5a0 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -3109,6 +3109,8 @@ std::string Server::getStatusString() os << "# Server: "; // Version os << "version: " << g_version_string; + // Game + os << " | game: " << (m_gamespec.name.empty() ? m_gamespec.id : m_gamespec.name); // Uptime os << " | uptime: " << duration_to_string((int) m_uptime_counter->get()); // Max lag estimate