From 340f9e20fc2fadf2611065dcd5a805c37759a888 Mon Sep 17 00:00:00 2001 From: Manason Date: Sun, 3 Dec 2023 08:49:36 -0800 Subject: [PATCH] protect against nil tags --- server/logs.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/logs.lua b/server/logs.lua index 2e9fee8..cc7d1d0 100644 --- a/server/logs.lua +++ b/server/logs.lua @@ -49,9 +49,11 @@ local allowedErr = { local function logPayload(payload) local tags - for i = 1, #payload.tags do - if not tags then tags = '' end - tags = tags .. payload.tags[i] + if payload.tags then + for i = 1, #payload.tags do + if not tags then tags = '' end + tags = tags .. payload.tags[i] + end end PerformHttpRequest(payload.webhook, function(err, _, headers)