aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-17 11:40:24 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-17 11:40:24 +0200
commitb91edc9e3993eb65e8bc07f8f7f35a1995ffae66 (patch)
tree21eac2a80d592fecc023bad8c3c3d75a9c182720
parentd1cba3fc057a71cc2ad4d88450e492f58669ce7f (diff)
downloadrouteros-scripts-b91edc9e3993eb65e8bc07f8f7f35a1995ffae66.tar.gz
routeros-scripts-b91edc9e3993eb65e8bc07f8f7f35a1995ffae66.tar.zst
global-functions: $ScriptInstallUpdate: add symbol in notification
-rw-r--r--global-functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 5304e53..a59ac11 100644
--- a/global-functions
+++ b/global-functions
@@ -496,6 +496,7 @@
:global LogPrintExit;
:global ParseKeyValueStore;
:global SendNotification;
+ :global SymbolForNotification;
:foreach Script in=$Scripts do={
:if ([ / system script print count-only where name=$Script ] = 0) do={
@@ -636,7 +637,8 @@
"https://git.eworm.de/cgit/routeros-scripts/about/#donate");
}
- $SendNotification "News and configuration changes" $NotificationMessage;
+ $SendNotification ([ $SymbolForNotification "pushpin" ] . "News and configuration changes") \
+ $NotificationMessage;
:set SentConfigChangesNotification $ExpectedConfigVersion;
}
}
@@ -741,6 +743,7 @@
"floppy-disk"="\F0\9F\92\BE";
"high-voltage-sign"="\E2\9A\A1";
"incoming-envelope"="\F0\9F\93\A8";
+ "pushpin"="\F0\9F\93\8C";
"sparkles"="\E2\9C\A8";
"warning-sign"="\E2\9A\A0";
"white-heavy-check-mark"="\E2\9C\85"