mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 12:34:27 +02:00
sms-forward: use $LogAndError
This commit is contained in:
parent
556fc2d0d3
commit
bb9a4e6ecf
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@
|
||||||
|
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
:global MailServerIsUp;
|
:global MailServerIsUp;
|
||||||
|
:global LogAndError;
|
||||||
|
|
||||||
# check mail server
|
# check mail server
|
||||||
:if ($MailServerIsUp = false) do={
|
:if ($MailServerIsUp = false) do={
|
||||||
:log warning "Mail server is not up.";
|
$LogAndError "Mail server is not up.";
|
||||||
:error "Warning: See log for details.";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:local Settings [ / tool sms get ];
|
:local Settings [ / tool sms get ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue