mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $SendEMail: invert condition
This commit is contained in:
@ -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!
|
||||
|
Reference in New Issue
Block a user