mirror of
https://github.com/minetest/minetest.git
synced 2025-02-17 10:23:47 +01:00
Add missing ip address to player join log entry
This commit is contained in:
@ -1280,8 +1280,9 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
|
|||||||
SendChatMessage(PEER_ID_INEXISTENT,message);
|
SendChatMessage(PEER_ID_INEXISTENT,message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Address addr = getPeerAddress(player->peer_id);
|
||||||
actionstream<<player->getName() <<" joins game. " << std::endl;
|
std::string ip_str = addr.serializeString();
|
||||||
|
actionstream<<player->getName() <<" [" << ip_str << "] joins game. " << std::endl;
|
||||||
/*
|
/*
|
||||||
Print out action
|
Print out action
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user