Codechange: [Network] Introduce function to validate the client name

This commit is contained in:
rubidium42
2021-04-22 07:01:46 +02:00
committed by rubidium42
parent dc0efd5f2e
commit b14f412117
4 changed files with 17 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ extern StringList _network_host_list;
extern StringList _network_ban_list;
byte NetworkSpectatorCount();
bool NetworkIsValidClientName(const char *client_name);
void NetworkUpdateClientName();
bool NetworkCompanyHasClients(CompanyID company);
const char *NetworkChangeCompanyPassword(CompanyID company_id, const char *password);