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

sms-action: give hint about mis-usage

This commit is contained in:
Christian Hesse
2019-07-05 23:33:45 +02:00
parent 15beb92347
commit 933db2ddc8

View File

@ -8,6 +8,11 @@
:local Action $action;
:if ([ :typeof $Action ] = "nothing") do={
:log error "This script is supposed to run from SMS hook with action=...";
:error "Error: See log for details.";
}
:local Code ($SmsAction->$Action);
:local Parsed [ :parse $Code ];