Added check for old queued messages

This commit is contained in:
Luca Deri 2018-04-05 14:25:31 +00:00
parent 75ff3d8908
commit 9893a62174
2 changed files with 33 additions and 28 deletions

View file

@ -683,6 +683,8 @@ function alertLevel(v)
end
function alertTypeRaw(alert_idx)
if(alert_idx == nil) then return nil end
alert_idx = alert_idx + 2 -- -1 and 0
if alert_idx <= #alert_type_keys then
return alert_type_keys[alert_idx][3]