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)){
return;
}
- std::string addr_s = m_con.GetPeerAddress(peer_id).serializeString();
-
u8 peer_ser_ver = getClient(peer_id)->serialization_version;
try
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;
}