aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-19 14:45:18 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-24 12:13:35 +0100
commit8213c5ed612459b4f69688377d8db914e63a39a2 (patch)
treed16e99e2a16cf5c4f36918163d5a38d7d55fe6b0 /netwatch-notify
parentfe0460ef6daaee5f5cf0a77f694e3e4b4f00a300 (diff)
netwatch-notify: support sending silent notifications
Diffstat (limited to 'netwatch-notify')
-rw-r--r--netwatch-notify4
1 files 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 });