From: proller Date: Tue, 23 Jul 2013 16:31:05 +0000 (+0400) Subject: Cosmetic player info changes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=3629a90c2ee315453c8d654a308645bdbdc40074;p=zefram%2Fminetest%2Fminetest_engine.git Cosmetic player info changes --- diff --git a/src/server.cpp b/src/server.cpp index 3bba193d..c5146658 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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)){ @@ -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 @@ -2178,7 +2177,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) os<getName()<<" "; } - actionstream<getName()<<" ["<getName()<<" ["<