aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-08-05 10:32:19 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-08-05 10:32:19 +0200
commit5408ba008af2df5b20b3f5ebf166f24fdceb1ff5 (patch)
tree6233e1bb81f117fbb3883d3c7928edfb7142ad93
parent67f4b135f5558f002b55da3b933b3c278d47ca66 (diff)
sms-forward: fix array access in condition
-rw-r--r--sms-forward3
1 files changed, 2 insertions, 1 deletions
diff --git a/sms-forward b/sms-forward
index 6a3cf70..f749644 100644
--- a/sms-forward
+++ b/sms-forward
@@ -25,7 +25,8 @@
:foreach Sms in=[ / tool sms inbox find where phone=$Phone ] do={
: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.";
/ tool sms inbox remove $Sms;
} else={