From 8213c5ed612459b4f69688377d8db914e63a39a2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 19 Feb 2023 14:45:18 +0100 Subject: netwatch-notify: support sending silent notifications --- netwatch-notify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwatch-notify b/netwatch-notify index 1d52b27..d04d23f 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -116,7 +116,7 @@ $ScriptLock $0; :set Message ($Message . "\n\n" . [ $NetwatchNotifyHook $Name $Type "up" \ ($HostInfo->"up-hook") ]); } - $SendNotification2 ({ origin=$0; \ + $SendNotification2 ({ origin=$0; silent=($HostInfo->"silent"); \ subject=([ $SymbolForNotification "white-heavy-check-mark" ] . "Netwatch Notify: " . \ $Name . " up"); \ message=$Message }); @@ -167,7 +167,7 @@ $ScriptLock $0; ($HostInfo->"down-hook") ]); } :if ($HostInfo->"no-down-notification" != true) do={ - $SendNotification2 ({ origin=$0; \ + $SendNotification2 ({ origin=$0; silent=($HostInfo->"silent"); \ subject=([ $SymbolForNotification "cross-mark" ] . "Netwatch Notify: " . \ $Name . " down"); \ message=$Message }); -- cgit v1.2.3-70-g09d2