mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
clang-modernize -use-auto convert for world/net.cpp
This commit is contained in:
parent
8f18672690
commit
7e2661bbc1
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user