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());