(svn r22365) -Codechange: add overload of NetworkServerKickOrBanIP using the ClientID, which later resolves the IP address to ban. This to consolidate the knowledge about resolving IP addresses
This commit is contained in:
@@ -1919,6 +1919,11 @@ void NetworkServerKickClient(ClientID client_id)
|
||||
NetworkServerSendError(client_id, NETWORK_ERROR_KICKED);
|
||||
}
|
||||
|
||||
uint NetworkServerKickOrBanIP(ClientID client_id, bool ban)
|
||||
{
|
||||
return NetworkServerKickOrBanIP(GetClientIP(NetworkClientInfo::GetByClientID(client_id)), ban);
|
||||
}
|
||||
|
||||
uint NetworkServerKickOrBanIP(const char *ip, bool ban)
|
||||
{
|
||||
/* Add address to ban-list */
|
||||
|
Reference in New Issue
Block a user