From ec4e9cc9f2528abc3a981bc59d0eaa3e221e3ceb Mon Sep 17 00:00:00 2001 From: Salanto Date: Thu, 13 May 2021 17:07:15 +0200 Subject: [PATCH] Update discord.cpp --- src/discord.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord.cpp b/src/discord.cpp index d3e27c1..22864a2 100644 --- a/src/discord.cpp +++ b/src/discord.cpp @@ -42,7 +42,7 @@ void Discord::postModcallWebhook(QString name, QString reason, int current_area) }; jsonArray.append(jsonObject); json["embeds"] = jsonArray; - if (server->webhook_content != "") + if (!server->webhook_content.isEmpty()) json["content"] = server->webhook_content; nam->post(request, QJsonDocument(json).toJson());