mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
sms-forward: fix array access in condition
This commit is contained in:
parent
67f4b135f5
commit
5408ba008a
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@
|
||||||
:foreach Sms in=[ / tool sms inbox find where phone=$Phone ] do={
|
:foreach Sms in=[ / tool sms inbox find where phone=$Phone ] do={
|
||||||
:local SmsVal [ / tool sms inbox get $Sms ];
|
:local SmsVal [ / tool sms inbox get $Sms ];
|
||||||
|
|
||||||
:if ($Phone = $Settings->"allowed" && ($SmsVal->"message")~("^:cmd " . $Settings->"secret" . " script ")) do={
|
:if ($Phone = $Settings->"allowed-number" && \
|
||||||
|
($SmsVal->"message")~("^:cmd " . $Settings->"secret" . " script ")) do={
|
||||||
:log debug "Removing SMS, which started a script.";
|
:log debug "Removing SMS, which started a script.";
|
||||||
/ tool sms inbox remove $Sms;
|
/ tool sms inbox remove $Sms;
|
||||||
} else={
|
} else={
|
||||||
|
|
Loading…
Reference in a new issue