summaryrefslogtreecommitdiff
path: root/src/network/network_func.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-21 18:29:21 +0200
committerPatric Stout <github@truebrain.nl>2021-06-26 20:28:34 +0200
commitcdf9caf8eae152d81ef17ed6c7f56e52d07dbe3f (patch)
tree70530c706f83b652b47ca061f6a31e70b3e9b237 /src/network/network_func.h
parent0013673fafc74034df77ce0588ea6d568f120b45 (diff)
downloadopenttd-cdf9caf8eae152d81ef17ed6c7f56e52d07dbe3f.tar.xz
Codechange: [Network] Remove overload on NetworkValidateClientName
Rename the zero-parameter NetworkValidateClientName to NetworkValidateOurClientName to make it clearer it is performed on our client name, and to make it a non-overloaded function to aid with the variant being added a few commits later
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r--src/network/network_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h
index ec27d4b78..0dd9328eb 100644
--- a/src/network/network_func.h
+++ b/src/network/network_func.h
@@ -36,7 +36,7 @@ extern StringList _network_ban_list;
byte NetworkSpectatorCount();
bool NetworkIsValidClientName(const std::string_view client_name);
-bool NetworkValidateClientName();
+bool NetworkValidateOurClientName();
bool NetworkValidateClientName(std::string &client_name);
bool NetworkValidateServerName(std::string &server_name);
void NetworkUpdateClientName(const std::string &client_name);