mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
telegram-chat: log command with failed syntax validation
This commit is contained in:
@ -120,6 +120,7 @@ $WaitFullyConnected;
|
||||
("Output exceeds file read size.") ("No output.") ] ]) });
|
||||
/file/remove "tmpfs/telegram-chat";
|
||||
} else={
|
||||
$LogPrintExit2 info $0 ("The command from update " . $UpdateID . " failed syntax validation!") false;
|
||||
$SendTelegram2 ({ origin=$0; chatid=$ChatID; 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