From 378b21099dec89d8ecefec1d9091ffa79c623884 Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Thu, 19 Aug 2021 23:04:23 +0200 Subject: [PATCH] Add check for empty string --- core/src/discord.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/discord.cpp b/core/src/discord.cpp index d0f093b..1526101 100644 --- a/core/src/discord.cpp +++ b/core/src/discord.cpp @@ -71,6 +71,8 @@ QJsonDocument Discord::constructModcallJson(const QString &f_name, const QString {"description", f_reason} }; l_array.append(l_object); + + if (!ConfigManager::discordModcallWebhookContent().isEmpty()) l_json["content"] = ConfigManager::discordModcallWebhookContent(); l_json["embeds"] = l_array;