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

Function AdminClientBanCallback

src/network/network_gui.cpp:1303–1306  ·  view source on GitHub ↗

* Callback function for admin command to ban client. * @param confirmed Iff the user pressed Yes. */

Source from the content-addressed store, hash-verified

1301 * @param confirmed Iff the user pressed Yes.
1302 */
1303static void AdminClientBanCallback(Window *, bool confirmed)
1304{
1305 if (confirmed) NetworkServerKickOrBanIP(_admin_client_id, true, {});
1306}
1307
1308/**
1309 * Callback function for admin command to reset company.

Callers

nothing calls this directly

Calls 1

NetworkServerKickOrBanIPFunction · 0.85

Tested by

no test coverage detected