Skip to content

Commit

Permalink
Cosmetic player info changes
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Jul 23, 2013
1 parent a0f5b70 commit 3629a90
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/server.cpp
Expand Up @@ -1745,9 +1745,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)

ScopeProfiler sp(g_profiler, "Server::ProcessData");

std::string addr_s;
try{
Address address = m_con.GetPeerAddress(peer_id);
std::string addr_s = address.serializeString();
addr_s = address.serializeString();

// drop player if is ip is banned
if(m_banmanager.isIpBanned(addr_s)){
Expand All @@ -1769,8 +1770,6 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
return;
}

std::string addr_s = m_con.GetPeerAddress(peer_id).serializeString();

u8 peer_ser_ver = getClient(peer_id)->serialization_version;

try
Expand Down Expand Up @@ -2178,7 +2177,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
os<<player->getName()<<" ";
}

actionstream<<player->getName()<<" ["<<addr_s<<"] "<<" joins game. List of players: "
actionstream<<player->getName()<<" ["<<addr_s<<"] "<<"joins game. List of players: "
<<os.str()<<std::endl;
}

Expand Down

0 comments on commit 3629a90

Please sign in to comment.