Skip to content

Commit 3629a90

Browse files
committedJul 23, 2013
Cosmetic player info changes
1 parent a0f5b70 commit 3629a90

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/server.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1745,9 +1745,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
17451745

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

1748+
std::string addr_s;
17481749
try{
17491750
Address address = m_con.GetPeerAddress(peer_id);
1750-
std::string addr_s = address.serializeString();
1751+
addr_s = address.serializeString();
17511752

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

1772-
std::string addr_s = m_con.GetPeerAddress(peer_id).serializeString();
1773-
17741773
u8 peer_ser_ver = getClient(peer_id)->serialization_version;
17751774

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.