server to print version in chat
authorPerttu Ahola <celeron55@gmail.com>
Sun, 24 Apr 2011 21:24:40 +0000 (00:24 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 24 Apr 2011 21:24:40 +0000 (00:24 +0300)
src/server.cpp

index 89359cd5ed2612d62f45687148448746beead6b6..aba105083134003b7ac48540a855d6b684913997 100644 (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