mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-20 16:09:32 +00:00
global-functions: $ExitError: drop argument $ExitOK...
... as the is no longer required with early exit with :exit.
This commit is contained in:
parent
eb182fe769
commit
2e422a153f
69 changed files with 83 additions and 86 deletions
|
|
@ -62,7 +62,7 @@
|
|||
:set TelegramQueue;
|
||||
}
|
||||
} do={
|
||||
:global ExitError; $ExitError false $0 $Err;
|
||||
:global ExitError; $ExitError $0 $Err;
|
||||
} }
|
||||
|
||||
# get the chat id
|
||||
|
|
@ -101,7 +101,7 @@
|
|||
$LogPrint info $0 ("The thread id is: " . ($Message->"message_thread_id"));
|
||||
}
|
||||
} do={
|
||||
:global ExitError; $ExitError false $0 $Err;
|
||||
:global ExitError; $ExitError $0 $Err;
|
||||
} }
|
||||
|
||||
# send notification via telegram - expects one array argument
|
||||
|
|
@ -237,7 +237,7 @@
|
|||
|
||||
$SendTelegram2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 });
|
||||
} do={
|
||||
:global ExitError; $ExitError false $0 $Err;
|
||||
:global ExitError; $ExitError $0 $Err;
|
||||
} }
|
||||
|
||||
# send notification via telegram - expects one array argument
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue