clang-modernize -use-auto convert for world/net.cpp

This commit is contained in:
Michael Cook (mackal) 2015-01-09 03:05:14 -05:00
parent 8f18672690
commit 7e2661bbc1

View File

@ -417,7 +417,7 @@ int main(int argc, char** argv) {
_log(WORLD__CLIENT, "Checking inbound connection %s against BannedIPs table", inet_ntoa(in));
if (!database.CheckBannedIPs(inet_ntoa(in))){ //Lieka: Check inbound IP against banned IP table.
_log(WORLD__CLIENT, "Connection %s PASSED banned IPs check. Processing connection.", inet_ntoa(in));
Client* client = new Client(eqsi);
auto client = new Client(eqsi);
// @merth: client->zoneattempt=0;
client_list.Add(client);
} else {
@ -427,7 +427,7 @@ int main(int argc, char** argv) {
}
if (!RuleB(World, UseBannedIPsTable)){
_log(WORLD__CLIENT, "New connection from %s:%d, processing connection", inet_ntoa(in), ntohs(eqsi->GetRemotePort()));
Client* client = new Client(eqsi);
auto client = new Client(eqsi);
// @merth: client->zoneattempt=0;
client_list.Add(client);
}