diff options
author | rubidium <rubidium@openttd.org> | 2011-04-22 15:59:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-04-22 15:59:32 +0000 |
commit | caf02450fb4937f08027903ff17ddc174004c2f2 (patch) | |
tree | 2c1eb253c42ee7b57dbf8ef795b3427375ce3062 /src/network/network_func.h | |
parent | 1c419d99bcb72eb198796f1695c003b3736abe8f (diff) | |
download | openttd-caf02450fb4937f08027903ff17ddc174004c2f2.tar.xz |
(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
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r-- | src/network/network_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h index 4649d09ad..0d9e86f95 100644 --- a/src/network/network_func.h +++ b/src/network/network_func.h @@ -75,6 +75,7 @@ void NetworkServerSendRcon(ClientID client_id, TextColour colour_code, const cha void NetworkServerSendChat(NetworkAction action, DestType type, int dest, const char *msg, ClientID from_id, int64 data = 0, bool from_admin = false); void NetworkServerKickClient(ClientID client_id); +uint NetworkServerKickOrBanIP(ClientID client_id, bool ban); uint NetworkServerKickOrBanIP(const char *ip, bool ban); void NetworkInitChatMessage(); |