mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02: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…
Add table
Add a link
Reference in a new issue