Add missing ip address to player join log entry

This commit is contained in:
sapier 2014-04-21 22:28:52 +02:00
parent f20267862f
commit 555dc86343
1 changed files with 3 additions and 2 deletions

View File

@ -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
*/