aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-04-21 22:28:52 +0200
committersapier <Sapier at GMX dot net>2014-04-21 22:28:52 +0200
commit555dc863433312f353b6639942a6ec0148923c3f (patch)
tree4b28059e457a69c5c16db7a89c70627b17a8b22f
parentf20267862f075cf9cb7a05df3d173499088dca90 (diff)
downloadminetest-555dc863433312f353b6639942a6ec0148923c3f.tar.gz
minetest-555dc863433312f353b6639942a6ec0148923c3f.tar.bz2
minetest-555dc863433312f353b6639942a6ec0148923c3f.zip
Add missing ip address to player join log entry
-rw-r--r--src/server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 3ec6fee26..fc01898cc 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1280,8 +1280,9 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
SendChatMessage(PEER_ID_INEXISTENT,message);
}
}
-
- actionstream<<player->getName() <<" joins game. " << std::endl;
+ Address addr = getPeerAddress(player->peer_id);
+ std::string ip_str = addr.serializeString();
+ actionstream<<player->getName() <<" [" << ip_str << "] joins game. " << std::endl;
/*
Print out action
*/