projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6edb8c5
)
server to print version in chat
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 24 Apr 2011 21:24:40 +0000
(
00:24
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 24 Apr 2011 21:24:40 +0000
(
00:24
+0300)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 89359cd5ed2612d62f45687148448746beead6b6..aba105083134003b7ac48540a855d6b684913997 100644
(file)
--- 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