1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

sms-forward: use $LogPrintExit

This commit is contained in:
Christian Hesse
2020-04-03 17:20:56 +02:00
parent ee903e263f
commit 972a481faa

View File

@ -29,7 +29,7 @@
:if ($Phone = $Settings->"allowed-number" && \
($SmsVal->"message")~("^:cmd " . $Settings->"secret" . " script ")) do={
:log debug "Removing SMS, which started a script.";
$LogPrintExit debug ("Removing SMS, which started a script.") false;
/ tool sms inbox remove $Sms;
} else={
:set Messages ($Messages . "\n\nOn " . $SmsVal->"timestamp" . \