mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-03 14:44:29 +02:00
mod/notification-telegram: $SendTelegram: use $ExitError to indicate unintentional error
This commit is contained in:
parent
e89867be15
commit
4968b79fc1
1 changed files with 4 additions and 2 deletions
|
@ -182,11 +182,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# send notification via telegram - expects at least two string arguments
|
# send notification via telegram - expects at least two string arguments
|
||||||
:set SendTelegram do={
|
:set SendTelegram do={ :do {
|
||||||
:global SendTelegram2;
|
:global SendTelegram2;
|
||||||
|
|
||||||
$SendTelegram2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 });
|
$SendTelegram2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 });
|
||||||
}
|
} on-error={
|
||||||
|
:global ExitError; $ExitError false $0;
|
||||||
|
} }
|
||||||
|
|
||||||
# send notification via telegram - expects one array argument
|
# send notification via telegram - expects one array argument
|
||||||
:set SendTelegram2 do={
|
:set SendTelegram2 do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue