MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / NetworkValidateOurClientName

Function NetworkValidateOurClientName

src/network/network_client.cpp:1283–1286  ·  view source on GitHub ↗

* Convenience method for NetworkValidateClientName on _settings_client.network.client_name. * It trims the client name and checks whether it is empty. When it is empty * an error message is shown to the GUI user. * See \c NetworkValidateClientName(std::string&) for details about the functionality. * @return True iff the client name is valid. */

Source from the content-addressed store, hash-verified

1281 * @return True iff the client name is valid.
1282 */
1283bool NetworkValidateOurClientName()
1284{
1285 return NetworkValidateClientName(_settings_client.network.client_name);
1286}
1287
1288/**
1289 * Send the server our name as callback from the setting.

Callers 2

NetworkClientConnectGameFunction · 0.85

Calls 1

Tested by

no test coverage detected