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