aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-07-23 20:31:05 +0400
committerproller <proller@github.com>2013-07-24 02:41:03 +0400
commit3629a90c2ee315453c8d654a308645bdbdc40074 (patch)
treedabbba2d993c4fbd5ae9965c76116fcca0016f5e
parenta0f5b70568c1140085cba2e2d8d83b6ae6912ed1 (diff)
downloadminetest-3629a90c2ee315453c8d654a308645bdbdc40074.tar.gz
minetest-3629a90c2ee315453c8d654a308645bdbdc40074.tar.bz2
minetest-3629a90c2ee315453c8d654a308645bdbdc40074.zip
Cosmetic player info changes
-rw-r--r--src/server.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 3bba193da..c5146658d 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<<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;
}