File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ void Server::handleCommand_Init2(NetworkPacket* pkt)
613
613
playersao = StageTwoClientInit (pkt->getPeerId ());
614
614
615
615
if (playersao == NULL ) {
616
- errorstream
616
+ actionstream
617
617
<< " TOSERVER_INIT2 stage 2 client init failed for peer "
618
618
<< pkt->getPeerId () << std::endl;
619
619
return ;
@@ -710,7 +710,7 @@ void Server::handleCommand_ClientReady(NetworkPacket* pkt)
710
710
PlayerSAO* playersao = StageTwoClientInit (peer_id);
711
711
712
712
if (playersao == NULL ) {
713
- errorstream
713
+ actionstream
714
714
<< " TOSERVER_CLIENT_READY stage 2 client init failed for peer_id: "
715
715
<< peer_id << std::endl;
716
716
m_con.DisconnectPeer (peer_id);
Original file line number Diff line number Diff line change @@ -1073,16 +1073,16 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
1073
1073
static_cast <RemotePlayer*>(m_env->getPlayer (playername.c_str ()));
1074
1074
1075
1075
// If failed, cancel
1076
- if ((playersao == NULL ) || (player == NULL )) {
1077
- if (player && player->peer_id != 0 ) {
1078
- errorstream<< " Server: " <<playername<< " : Failed to emerge player"
1079
- <<" (player allocated to an another client)" << std::endl;
1076
+ if ((playersao == NULL ) || (player == NULL )) {
1077
+ if (player && player->peer_id != 0 ) {
1078
+ actionstream << " Server: Failed to emerge player \" " << playername
1079
+ << " \" (player allocated to an another client)" << std::endl;
1080
1080
DenyAccess_Legacy (peer_id, L" Another client is connected with this "
1081
1081
L" name. If your client closed unexpectedly, try again in "
1082
1082
L" a minute." );
1083
1083
} else {
1084
- errorstream<< " Server: " << playername<< " : Failed to emerge player"
1085
- <<std::endl;
1084
+ errorstream << " Server: " << playername << " : Failed to emerge player"
1085
+ << std::endl;
1086
1086
DenyAccess_Legacy (peer_id, L" Could not allocate player." );
1087
1087
}
1088
1088
return NULL ;
You can’t perform that action at this time.
2 commit comments
nerzhul commentedon May 19, 2015
Are you sure ? Actionstream is output to stdout.
est31 commentedon May 19, 2015
I think clients should never be abled to trigger a log message in errorstream.