mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-09 01:24:27 +02:00
mod/notification-matrix: $SendMatrix: use $ExitError to indicate unintentional error
This commit is contained in:
parent
1994b23e46
commit
de9dee83be
1 changed files with 4 additions and 2 deletions
|
@ -166,11 +166,13 @@
|
|||
}
|
||||
|
||||
# send notification via Matrix - expects at least two string arguments
|
||||
:set SendMatrix do={
|
||||
:set SendMatrix do={ :do {
|
||||
:global SendMatrix2;
|
||||
|
||||
$SendMatrix2 ({ origin=$0; subject=$1; message=$2; link=$3 });
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
||||
# send notification via Matrix - expects one array argument
|
||||
:set SendMatrix2 do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue