mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
telegram-chat: also give a hint on failed syntax validation
... and drop the warning in log instead.
This commit is contained in:
@ -114,7 +114,9 @@ $WaitFullyConnected;
|
|||||||
message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) });
|
message=("Command:\n" . $Text . "\n\n" . $State . "Output:\n" . $Content) });
|
||||||
/file/remove "tmpfs/telegram-chat";
|
/file/remove "tmpfs/telegram-chat";
|
||||||
} else={
|
} else={
|
||||||
$LogPrintExit2 warning $0 ("The command failed syntax validation: " . $Text) false;
|
$SendTelegram2 ({ origin=$0; silent=false; \
|
||||||
|
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
||||||
|
message=("Command:\n" . $Text . "\n\nThe command failed syntax validation!") });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user