From: sapier Date: Mon, 21 Apr 2014 20:28:52 +0000 (+0200) Subject: Add missing ip address to player join log entry X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=555dc863433312f353b6639942a6ec0148923c3f;p=zefram%2Fminetest%2Fminetest_engine.git Add missing ip address to player join log entry --- diff --git a/src/server.cpp b/src/server.cpp index 3ec6fee2..fc01898c 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<getName() <<" joins game. " << std::endl; + Address addr = getPeerAddress(player->peer_id); + std::string ip_str = addr.serializeString(); + actionstream<getName() <<" [" << ip_str << "] joins game. " << std::endl; /* Print out action */