* Notify the admin network of a client error (if they have opt in for the respective update). * @param client_id the client that made the error. * @param error_code the error that was caused. */
| 921 | * @param error_code the error that was caused. |
| 922 | */ |
| 923 | void NetworkAdminClientError(ClientID client_id, NetworkErrorCode error_code) |
| 924 | { |
| 925 | for (ServerNetworkAdminSocketHandler *as : ServerNetworkAdminSocketHandler::IterateActive()) { |
| 926 | if (as->update_frequency[ADMIN_UPDATE_CLIENT_INFO].Test(AdminUpdateFrequency::Automatic)) { |
| 927 | as->SendClientError(client_id, error_code); |
| 928 | } |
| 929 | } |
| 930 | } |
| 931 | |
| 932 | /** |
| 933 | * Notify the admin network of a new company. |
no test coverage detected