aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-25 00:24:40 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-25 00:24:40 +0300
commitab51298a0d73a833718c6cdb34dadcee7d7f1b10 (patch)
treeac6eb60d11b6a7af61b5040c183adf3ebbff899e
parent6edb8c567cdc4f037452e43beb0545e6c538902b (diff)
downloadminetest-ab51298a0d73a833718c6cdb34dadcee7d7f1b10.tar.gz
minetest-ab51298a0d73a833718c6cdb34dadcee7d7f1b10.tar.bz2
minetest-ab51298a0d73a833718c6cdb34dadcee7d7f1b10.zip
server to print version in chat
-rw-r--r--src/server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 89359cd5e..aba105083 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -3846,8 +3846,10 @@ std::wstring Server::getStatusString()
{
std::wostringstream os(std::ios_base::binary);
os<<L"# Server: ";
+ // Version
+ os<<L"version="<<narrow_to_wide(VERSION_STRING);
// Uptime
- os<<L"uptime="<<m_uptime.get();
+ os<<L", uptime="<<m_uptime.get();
// Information about clients
os<<L", clients={";
for(core::map<u16, RemoteClient*>::Iterator