mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
sms-action: use $LogAndError
This commit is contained in:
@ -6,11 +6,12 @@
|
||||
|
||||
:global SmsAction;
|
||||
|
||||
:global LogAndError;
|
||||
|
||||
: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.";
|
||||
$LogAndError "This script is supposed to run from SMS hook with action=...";
|
||||
}
|
||||
|
||||
:local Code ($SmsAction->$Action);
|
||||
|
Reference in New Issue
Block a user