aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.d/notification-telegram
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-08-25 00:35:08 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-08-25 00:35:08 +0200
commit772e66b6226f5f9a345bbef29a7453380b693ea1 (patch)
tree104eab755a0779b6950fc1a35e4cd4bb31d89004 /global-functions.d/notification-telegram
parentd4896f2585ecd9bfa4f2be0fbec164a18a7b5730 (diff)
global-functions.d/notification-telegram: for syntax for ROS 7.xrouteros-7.1rc1-1
Strings with escape sequence have to be enclosed in parentheses. Looks like RouterOS 7.x is stricter here...
Diffstat (limited to 'global-functions.d/notification-telegram')
-rw-r--r--global-functions.d/notification-telegram2
1 files changed, 1 insertions, 1 deletions
diff --git a/global-functions.d/notification-telegram b/global-functions.d/notification-telegram
index 5643e58..4a05c9a 100644
--- a/global-functions.d/notification-telegram
+++ b/global-functions.d/notification-telegram
@@ -71,7 +71,7 @@
:global IfThenElse;
:if ($TelegramFixedWidthFont != true) do={
- :return ($1 . [ $IfThenElse ($2 = "body") "\n" "" ]);
+ :return ($1 . [ $IfThenElse ($2 = "body") ("\n") "" ]);
}
:local Return $1;