diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-16 19:38:56 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-16 19:38:56 +0300 |
commit | 143dce6672972a864a427f34f6513e5faeeaeb48 (patch) | |
tree | 0aaeeb89f1b3cbbbd7fd7063b133ba9941a9ccdc /src | |
parent | 96b2d1fd298d54eed84061645a22b49fbc0f3051 (diff) | |
download | minetest-143dce6672972a864a427f34f6513e5faeeaeb48.tar.gz minetest-143dce6672972a864a427f34f6513e5faeeaeb48.tar.bz2 minetest-143dce6672972a864a427f34f6513e5faeeaeb48.zip |
When player times out, log the action as a timeout rather than regular quitting
Diffstat (limited to 'src')
-rw-r--r-- | src/server.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp index 33c3b59b3..3e22a023a 100644 --- 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; } } |