mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-05 13:39:35 +00:00
Compare commits
48 commits
b88c2a14cc
...
f1af3e1dbc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1af3e1dbc | ||
|
|
b6886d83d0 | ||
|
|
fc95ea3852 | ||
|
|
6abe1554b5 | ||
|
|
aa1504d2bd | ||
|
|
ee80914d76 | ||
|
|
d955ce45a7 | ||
|
|
98f5e2b67c | ||
|
|
ffeec4b078 | ||
|
|
a2be20ea2f | ||
|
|
c3b1784c4e | ||
|
|
08aadc6ae4 | ||
|
|
cc25d55c2c | ||
|
|
8c984b4cdf | ||
|
|
bc0204ddb3 | ||
|
|
7f708473cf | ||
|
|
5a7a200898 | ||
|
|
ef6fcb0c78 | ||
|
|
2a77a50340 | ||
|
|
6b20f0e42f | ||
|
|
9930b3a040 | ||
|
|
efe17a7e49 | ||
|
|
df58612ea4 | ||
|
|
b6e3ae24ea | ||
|
|
9bf50d6853 | ||
|
|
2ef0827561 | ||
|
|
54bf9b0fe0 | ||
|
|
70fb34775f | ||
|
|
d6767f092e | ||
|
|
5d7c94cdaf | ||
|
|
1940564016 | ||
|
|
a11421860b | ||
|
|
9e2dbcd94f | ||
|
|
4d3703de38 | ||
|
|
4084d75f31 | ||
|
|
c25f14eaa4 | ||
|
|
9ef6cb10c2 | ||
|
|
006288108c | ||
|
|
e0d1ebcc65 | ||
|
|
8787b5ddb6 | ||
|
|
84474d8910 | ||
|
|
98bb07242e | ||
|
|
7b463dde8a | ||
|
|
28e1bffea2 | ||
|
|
78800753bb | ||
|
|
79db43d4b1 | ||
|
|
1ec25acd48 | ||
|
|
ebe77be142 |
3 changed files with 6 additions and 8 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
# Warning: Do *NOT* copy this line to overlay!
|
||||
:global GlobalConfigReady false;
|
||||
|
||||
# || ... but
|
||||
# \||/ start
|
||||
# \/ here!
|
||||
|
|
@ -270,11 +271,10 @@
|
|||
"cert2-cn"="4n0th3r-s3cr3t";
|
||||
};
|
||||
|
||||
# /\ Warning: Do *NOT* copy
|
||||
# /\7\ the code below to overlay!
|
||||
# /_()_\ Things *will* break!
|
||||
#
|
||||
# load custom settings from overlay and snippets
|
||||
# /\ Warning: Do *NOT*
|
||||
# /\7\ copy this code
|
||||
# /_()_\ to overlay!
|
||||
:foreach Script in=([ /system/script/find where name="global-config-overlay" ], \
|
||||
[ /system/script/find where name~"^global-config-overlay.d/" ]) do={
|
||||
:onerror Err {
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@
|
|||
|
||||
:local HTTPData ("chat_id=" . $ChatId . "&disable_notification=" . ($Notification->"silent") . \
|
||||
"&reply_to_message_id=" . ($Notification->"replyto") . "&message_thread_id=" . $ThreadId . \
|
||||
"&disable_web_page_preview=true&parse_mode=MarkdownV2");
|
||||
"&disable_web_page_preview=true&parse_mode=MarkdownV2");
|
||||
:onerror Err {
|
||||
:if ([ $CertificateAvailable "Go Daddy Root Certificate Authority - G2" ] = false) do={
|
||||
$LogPrint warning $0 ("Downloading required certificate failed.");
|
||||
|
|
|
|||
|
|
@ -107,9 +107,7 @@
|
|||
:local ThreadId [ $IfThenElse ($Message->"is_topic_message") ($Message->"message_thread_id") "" ];
|
||||
|
||||
:foreach IdsTrusted in=($TelegramChatId, $TelegramChatIdsTrusted) do={
|
||||
:if ($From->"id" = $IdsTrusted || \
|
||||
$From->"username" = $IdsTrusted || \
|
||||
$Chat->"id" = $IdsTrusted) do={
|
||||
:if ($From->"id" = $IdsTrusted || $From->"username" = $IdsTrusted) do={
|
||||
:set Trusted true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue