aboutsummaryrefslogtreecommitdiffstats
path: root/sms-forward
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 20:46:58 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commit123fe011151f66f0d6c9a27875d5139a9129ac10 (patch)
tree3df9c9bd7d95fd1c8d5902aae54f0e67970f6cc7 /sms-forward
parent557016387ce270d0c7035be85c7b432841535eda (diff)
sms-forward: use $SendNotification2
Diffstat (limited to 'sms-forward')
-rw-r--r--sms-forward8
1 files changed, 4 insertions, 4 deletions
diff --git a/sms-forward b/sms-forward
index 1d47000..55103fc 100644
--- a/sms-forward
+++ b/sms-forward
@@ -15,7 +15,7 @@
:global IfThenElse;
:global LogPrintExit2;
:global ScriptLock;
-:global SendNotification;
+:global SendNotification2;
:global SymbolForNotification;
:global WaitFullyConnected;
@@ -51,9 +51,9 @@ $WaitFullyConnected;
:if ([ :len $Messages ] > 0) do={
:local Count [ :len $Delete ];
- $SendNotification ([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone) \
- ("Received " . [ $IfThenElse ($Count = 1) "this message" ("these " . $Count . " messages") ] . \
- " by " . $Identity . " from " . $Phone . ":" . $Messages);
+ $SendNotification2 ({ subject=([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone); \
+ message=("Received " . [ $IfThenElse ($Count = 1) "this message" ("these " . $Count . " messages") ] . \
+ " by " . $Identity . " from " . $Phone . ":" . $Messages) });
:foreach Sms in=$Delete do={
/ tool sms inbox remove $Sms;
}