add blacklist for solo message

test-utf-8
rubin 2 years ago
parent 5640e5f10d
commit bcb84fa2a9
  1. 2
      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

Loading…
Cancel
Save