mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
mod/notification-matrix: update initialization of empty array
Having the parenthesis here is important for valid syntax!
This commit is contained in:
@@ -129,7 +129,7 @@
|
|||||||
$LogPrintExit2 info $0 ("Failed sending Matrix notification! Queuing...") false;
|
$LogPrintExit2 info $0 ("Failed sending Matrix notification! Queuing...") false;
|
||||||
|
|
||||||
:if ([ :typeof $MatrixQueue ] = "nothing") do={
|
:if ([ :typeof $MatrixQueue ] = "nothing") do={
|
||||||
:set MatrixQueue [ :toarray "" ];
|
:set MatrixQueue ({});
|
||||||
}
|
}
|
||||||
:local Text ([ $SymbolForNotification "alarm-clock" ] . \
|
:local Text ([ $SymbolForNotification "alarm-clock" ] . \
|
||||||
"This message was queued since " . [ /system/clock/get date ] . \
|
"This message was queued since " . [ /system/clock/get date ] . \
|
||||||
|
Reference in New Issue
Block a user