summaryrefslogtreecommitdiff
path: root/src/network/network_func.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-27 22:02:40 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commit16437b7c0dc2cf8c0ab32e375df7b2712feff73d (patch)
tree6714beec528c999b11adfc9a4959abb79942ab3e /src/network/network_func.h
parent02fdb5b210ede022cb921e869cdb34758ee5299e (diff)
downloadopenttd-16437b7c0dc2cf8c0ab32e375df7b2712feff73d.tar.xz
Codechange: move client name in settings to std::string
Diffstat (limited to 'src/network/network_func.h')
-rw-r--r--src/network/network_func.h4
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);