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:
@ -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 ];
|
||||
|
||||
|
Reference in New Issue
Block a user