From 53290b0d537fe0ee034e43a175fcd1794ab44316 Mon Sep 17 00:00:00 2001 From: Salanto Date: Wed, 12 May 2021 00:25:13 +0200 Subject: [PATCH] Apparently Linux does not like this. --- src/discord.cpp | 2 +- src/server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discord.cpp b/src/discord.cpp index 437cb6a..d3e27c1 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 != NULL) + if (server->webhook_content != "") json["content"] = server->webhook_content; nam->post(request, QJsonDocument(json).toJson()); diff --git a/src/server.cpp b/src/server.cpp index 02e7922..6dfe42c 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -311,7 +311,7 @@ void Server::loadServerConfig() webhook_enabled = config.value("webhook_enabled", "false").toBool(); webhook_url = config.value("webhook_url", "Your webhook url here.").toString(); webhook_sendfile = config.value("webhook_sendfile", false).toBool(); - webhook_content = config.value("webhook_content", NULL).toString(); + webhook_content = config.value("webhook_content", "").toString(); config.endGroup(); }