log any and every time we closesocket

This commit is contained in:
Lion Kortlepel
2020-11-12 03:00:32 +01:00
parent 583819070b
commit c9f5ee9729
3 changed files with 6 additions and 0 deletions

View File

@@ -347,6 +347,7 @@ int lua_dropPlayer(lua_State* L) {
}
Respond(c, "C:Server:You have been Kicked from the server! " + Reason, true);
c->SetStatus(-2);
info(Sec("Closing socket due to kick"));
closesocket(c->GetTCPSock());
} else