aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-01-24 22:49:36 +0100
committersfan5 <sfan5@live.de>2022-01-28 17:15:10 +0100
commit91c6728eb8cebf060b5a3aaed588a7b6dbf266ad (patch)
treeeaf23233c872495ea7d9451fbe5a93c1088bde87
parent22f0c66abbd02c8d7a66a81cf853f7c7fb84fe17 (diff)
downloadminetest-91c6728eb8cebf060b5a3aaed588a7b6dbf266ad.tar.gz
minetest-91c6728eb8cebf060b5a3aaed588a7b6dbf266ad.tar.bz2
minetest-91c6728eb8cebf060b5a3aaed588a7b6dbf266ad.zip
Add game name to server status string
-rw-r--r--src/server.cpp2
1 files changed, 2 insertions, 0 deletions
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