From 70f9c7926b31d7d7e4e48157e83e0e3acf8352e0 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 8 Sep 2021 14:33:02 +0200 Subject: global-functions*: syntax for ROS 7.x Strings with escape sequence have to be enclosed in parentheses. Looks like RouterOS 7.x is stricter here... --- global-functions.d/notification-telegram | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'global-functions.d/notification-telegram') diff --git a/global-functions.d/notification-telegram b/global-functions.d/notification-telegram index 4a05c9a..d8fe448 100644 --- a/global-functions.d/notification-telegram +++ b/global-functions.d/notification-telegram @@ -141,7 +141,7 @@ parsemode=$ParseMode; text=$Text; silent=($Notification->"silent") }; :if ([ :len [ / system scheduler find where name="FlushTelegramQueue" ] ] = 0) do={ / system scheduler add name=FlushTelegramQueue interval=1m start-time=startup \ - on-event=":global FlushTelegramQueue; \$FlushTelegramQueue;"; + on-event=(":global FlushTelegramQueue; \$FlushTelegramQueue;"); } } } -- cgit v1.2.3-54-g00ecf