diff options
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r-- | src/network/network_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_func.h b/src/network/network_func.h index e7709d307..cb0ca3355 100644 --- a/src/network/network_func.h +++ b/src/network/network_func.h @@ -35,9 +35,9 @@ extern StringList _network_host_list; extern StringList _network_ban_list; byte NetworkSpectatorCount(); -bool NetworkIsValidClientName(const char *client_name); +bool NetworkIsValidClientName(const std::string_view client_name); bool NetworkValidateClientName(); -bool NetworkValidateClientName(char *client_name); +bool NetworkValidateClientName(std::string &client_name); void NetworkUpdateClientName(); bool NetworkCompanyHasClients(CompanyID company); const char *NetworkChangeCompanyPassword(CompanyID company_id, const char *password); |