mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
sms-action: give hint about mis-usage
This commit is contained in:
parent
15beb92347
commit
933db2ddc8
1 changed files with 5 additions and 0 deletions
|
@ -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 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue