mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
telegram-chat: log command with failed syntax validation
This commit is contained in:
parent
f1ad240e59
commit
95b8a47b81
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ $WaitFullyConnected;
|
||||||
("Output exceeds file read size.") ("No output.") ] ]) });
|
("Output exceeds file read size.") ("No output.") ] ]) });
|
||||||
/file/remove "tmpfs/telegram-chat";
|
/file/remove "tmpfs/telegram-chat";
|
||||||
} else={
|
} else={
|
||||||
|
$LogPrintExit2 info $0 ("The command from update " . $UpdateID . " failed syntax validation!") false;
|
||||||
$SendTelegram2 ({ origin=$0; chatid=$ChatID; silent=false; \
|
$SendTelegram2 ({ origin=$0; chatid=$ChatID; silent=false; \
|
||||||
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
||||||
message=("Command:\n" . $Text . "\n\nThe command failed syntax validation!") });
|
message=("Command:\n" . $Text . "\n\nThe command failed syntax validation!") });
|
||||||
|
|
Loading…
Reference in a new issue