mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:56 +02:00
global-functions: introduce and use $SymbolForNotification
This commit is contained in:
parent
0e7b2d3ac7
commit
075859c898
9 changed files with 35 additions and 18 deletions
|
@ -15,7 +15,7 @@
|
|||
:global LogPrintExit;
|
||||
:global ScriptFromTerminal;
|
||||
:global SendNotification;
|
||||
:global SymbolByUnicodeName;
|
||||
:global SymbolForNotification;
|
||||
:global VersionToNum;
|
||||
|
||||
:local DoUpdate do={
|
||||
|
@ -89,7 +89,7 @@
|
|||
$Update->"latest-version" . ".") true;
|
||||
}
|
||||
|
||||
$SendNotification ([ $SymbolByUnicodeName "sparkles" ] . " RouterOS update") \
|
||||
$SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
|
||||
("A new RouterOS version " . ($Update->"latest-version") . \
|
||||
" is available for " . $Identity . ".\n\n" . \
|
||||
[ $DeviceInfo ] . "\n\n" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue