projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96b2d1f
)
When player times out, log the action as a timeout rather than regular quitting
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 16 Oct 2011 16:38:56 +0000
(19:38 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 16 Oct 2011 16:38:56 +0000
(19:38 +0300)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 33c3b59b300413c63132712dcf5dacaafaa7e295..3e22a023aded7a77cd05e7b395dfbda301fad514 100644
(file)
--- a/
src/server.cpp
+++ b/
src/server.cpp
@@
-4399,8
+4399,9
@@
void Server::handlePeerChange(PeerChange &c)
os<<player->getName()<<" ";
}
- actionstream<<player->getName()
- <<" leaves game. List of players: "
+ actionstream<<player->getName()<<" "
+ <<(c.timeout?"times out.":"leaves game.")
+ <<" List of players: "
<<os.str()<<std::endl;
}
}