mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
telegram-chat: do not cover existing variable
This commit is contained in:
parent
65d05a757b
commit
4c51b2fe52
1 changed files with 3 additions and 3 deletions
|
@ -130,16 +130,16 @@ $WaitFullyConnected;
|
|||
}
|
||||
}
|
||||
} else={
|
||||
:local Message ("Received a message from untrusted contact " . \
|
||||
:local MessageText ("Received a message from untrusted contact " . \
|
||||
[ $IfThenElse ($FromUserName = false) "without username" ("'" . $FromUserName . "'") ] . \
|
||||
" (ID " . $FromID . ") in update " . $UpdateID . "!");
|
||||
:if ($Text ~ ("^! *" . [ $EscapeForRegEx $Identity ] . "\$")) do={
|
||||
$LogPrintExit2 warning $0 $Message false;
|
||||
$LogPrintExit2 warning $0 $MessageText false;
|
||||
$SendTelegram2 ({ origin=$0; chatid=$ChatID; silent=false; replyto=$MessageId; \
|
||||
subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \
|
||||
message=("You are not trusted.") });
|
||||
} else={
|
||||
$LogPrintExit2 info $0 $Message false;
|
||||
$LogPrintExit2 info $0 $MessageText false;
|
||||
}
|
||||
}
|
||||
} else={
|
||||
|
|
Loading…
Reference in a new issue