From d15415d0716d9fe5390e259c6c9a926e5891302f Mon Sep 17 00:00:00 2001 From: AardCrowley Date: Mon, 28 Nov 2022 22:53:52 -0500 Subject: [PATCH] Update Telegram.xml --- Telegram.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram.xml b/Telegram.xml index dc6daca..4224bf2 100644 --- a/Telegram.xml +++ b/Telegram.xml @@ -70,6 +70,7 @@ function url_encode(str) end function pageRequest(req, protocol) + local req = string.format(alertFormat, req) if async_ok then async.doAsyncRemoteRequest(req, "", protocol) else @@ -82,12 +83,12 @@ function sendAlert(name, line, wildcards) local wc = wildcards[1] or "" for _,v in ipairs(triggerLines) do if name == v.name then - msg = string.format(alertFormat, url.escape(v.message .. wc)) + msg = url.escape(v.message .. wc) break end end else - msg = string.format(alertFormat, "Test notification.") + msg = "Test notification." end pageRequest(msg, "HTTPS") end