Skip to content
Permalink
Browse files

Add missing ip address to player join log entry

  • Loading branch information...
sapier sapier
sapier authored and sapier committed Apr 21, 2014
1 parent f202678 commit 555dc863433312f353b6639942a6ec0148923c3f
Showing with 3 additions and 2 deletions.
  1. +3 −2 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
*/

0 comments on commit 555dc86

Please sign in to comment.
You can’t perform that action at this time.