mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 02:28:39 +02:00
global-functions: $SendEMail: invert condition
This commit is contained in:
parent
227151e189
commit
3d07ebde05
1 changed files with 13 additions and 11 deletions
|
@ -389,7 +389,10 @@
|
|||
:global EmailGeneralTo;
|
||||
:global EmailGeneralCc;
|
||||
|
||||
:if ([ :len $EmailGeneralTo ] > 0) do={
|
||||
:if ([ :len $EmailGeneralTo ] = 0) do={
|
||||
:return;
|
||||
}
|
||||
|
||||
:do {
|
||||
:local Signature [ / system note get note ];
|
||||
:if ([ :len $Signature ] > 0) do={
|
||||
|
@ -402,7 +405,6 @@
|
|||
:log warning "Failed sending notification mail!";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# send notification via e-mail and telegram
|
||||
# Note that attachment is ignored for telegram, silent is ignored for e-mail!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue