From bcb84fa2a945a7455351a384bf22ea3f5e17c673 Mon Sep 17 00:00:00 2001 From: rubin Date: Mon, 9 Jan 2023 20:54:47 +0300 Subject: [PATCH] add blacklist for solo message --- TruckHUD.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TruckHUD.lua b/TruckHUD.lua index 1df5539..e19dc69 100644 --- a/TruckHUD.lua +++ b/TruckHUD.lua @@ -3542,7 +3542,7 @@ end function transponder_solo_message(info) if info.solo_data ~= nil then for sender, solo_data in pairs(info.solo_data) do - if info.timestamp - solo_data.time < 5 and getNameById(tonumber(solo_data.id)) == solo_data.name then + if (inifiles.blacklist[sender] ~= nil and not inifiles.blacklist[sender]) info.timestamp - solo_data.time < 5 and getNameById(tonumber(solo_data.id)) == solo_data.name then if solo_data_antiflood[sender] == nil then solo_data_antiflood[sender] = {} end