1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 16:08:51 -05:00

server to print version in chat

This commit is contained in:
Perttu Ahola 2011-04-25 00:24:40 +03:00
parent 6edb8c567c
commit ab51298a0d

View File

@ -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