Add game name to server status string

This commit is contained in:
sfan5 2022-01-24 22:49:36 +01:00
parent 22f0c66abb
commit 91c6728eb8

@ -3109,6 +3109,8 @@ std::string Server::getStatusString()
os << "# Server: "; os << "# Server: ";
// Version // Version
os << "version: " << g_version_string; os << "version: " << g_version_string;
// Game
os << " | game: " << (m_gamespec.name.empty() ? m_gamespec.id : m_gamespec.name);
// Uptime // Uptime
os << " | uptime: " << duration_to_string((int) m_uptime_counter->get()); os << " | uptime: " << duration_to_string((int) m_uptime_counter->get());
// Max lag estimate // Max lag estimate