* Ban, or kick, everyone joined from the given client's IP. * @param client_id The client to check for. * @param ban Whether to ban or kick. * @param reason In case of kicking a client, specifies the reason for kicking the client. */
| 2039 | * @param reason In case of kicking a client, specifies the reason for kicking the client. |
| 2040 | */ |
| 2041 | uint NetworkServerKickOrBanIP(ClientID client_id, bool ban, std::string_view reason) |
| 2042 | { |
| 2043 | return NetworkServerKickOrBanIP(NetworkClientSocket::GetByClientID(client_id)->GetClientIP(), ban, reason); |
| 2044 | } |
| 2045 | |
| 2046 | /** |
| 2047 | * Kick or ban someone based on an IP address. |
no test coverage detected