From b1270055bd37d0ecf18521c6f23d609aec55e007 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 17 Oct 2023 21:37:18 +0100 Subject: [PATCH] refactor: improve formatting of server IP value in Discord alert The code changes in this commit refactor the formatting of the server IP value in the Discord alert. The value is now enclosed in single quotes for better readability. --- lgsm/modules/alert_discord.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/alert_discord.sh b/lgsm/modules/alert_discord.sh index b2141348d..574f6248b 100644 --- a/lgsm/modules/alert_discord.sh +++ b/lgsm/modules/alert_discord.sh @@ -36,7 +36,7 @@ jsoninfo=$( }, { "name": "Server IP", - "value": "${alertip}:${port}", + "value": "\`${alertip}:${port}\`", "inline": true }, { @@ -92,7 +92,7 @@ jsonnoinfo=$( }, { "name": "Server IP", - "value": "${alertip}:${port}", + "value": "\`${alertip}:${port}\`", "inline": true }, {