diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-25 00:24:40 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-25 00:24:40 +0300 |
commit | ab51298a0d73a833718c6cdb34dadcee7d7f1b10 (patch) | |
tree | ac6eb60d11b6a7af61b5040c183adf3ebbff899e | |
parent | 6edb8c567cdc4f037452e43beb0545e6c538902b (diff) | |
download | minetest-ab51298a0d73a833718c6cdb34dadcee7d7f1b10.tar.gz minetest-ab51298a0d73a833718c6cdb34dadcee7d7f1b10.tar.bz2 minetest-ab51298a0d73a833718c6cdb34dadcee7d7f1b10.zip |
server to print version in chat
-rw-r--r-- | src/server.cpp | 4 |
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 |