aboutsummaryrefslogtreecommitdiffstats
path: root/sms-action
diff options
context:
space:
mode:
Diffstat (limited to 'sms-action')
-rw-r--r--sms-action12
1 files changed, 7 insertions, 5 deletions
diff --git a/sms-action b/sms-action
index 2d4e69f..b651c57 100644
--- a/sms-action
+++ b/sms-action
@@ -4,11 +4,13 @@
#
# run action on received SMS
-:global "sms-action";
+:global SmsAction;
-:local code ($"sms-action"->$action);
-:local parsed [ :parse $code ];
+:local Action $action;
-:log info ("Acting on SMS action '" . $action . "': " . $code);
+:local Code ($SmsAction->$Action);
+:local Parsed [ :parse $Code ];
+
+:log info ("Acting on SMS action '" . $Action . "': " . $Code);
:delay 1s;
-$parsed;
+$Parsed;