diff --git a/Telegram.xml b/Telegram.xml index ea76039..ec19d00 100644 --- a/Telegram.xml +++ b/Telegram.xml @@ -10,6 +10,18 @@ + + + + + @@ -64,11 +76,16 @@ function pageRequest(req, protocol) end function sendAlert(name, line, wildcards) - for _,v in ipairs(triggerLines) do - if name == v.name then - msg = string.format(alertFormat, v.message) - break + local wc = wildcards[1] or "" + if name ~= "TestAlert" then + for _,v in ipairs(triggerLines) do + if name == v.name then + msg = string.format(alertFormat, v.message .. wc) + break + end end + else + msg = string.format(alertFormat, "Test notification." end pageRequest(msg, "HTTPS") end