Remove Unknown Player OOM Kick False Positives (#3170)

This commit is contained in:
Ryan 2024-05-24 17:19:32 -04:00 committed by GitHub
parent c180694199
commit 860a466f82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,14 +240,14 @@ namespace big
case rage::eNetMessage::MsgScriptMigrateHost: return true; case rage::eNetMessage::MsgScriptMigrateHost: return true;
case rage::eNetMessage::MsgRadioStationSyncRequest: case rage::eNetMessage::MsgRadioStationSyncRequest:
{ {
static rate_limiter unk_player_radio_requests{2s, 2}; static rate_limiter unk_player_radio_requests{1s, 6};
if (unk_player_radio_requests.process()) if (unk_player_radio_requests.process())
{ {
if (unk_player_radio_requests.exceeded_last_process()) if (unk_player_radio_requests.exceeded_last_process())
{ {
// Make a translation for this new OOM kick protection // Make a translation for this new OOM kick protection
g_notification_service.push_error("PROTECTIONS"_T.data(), "OOM_KICK"_T.data()); g_notification_service.push_error("PROTECTIONS"_T.data(), "OOM_KICK_UNK"_T.data());
} }
return true; return true;
} }