Slight improvement

This commit is contained in:
Salanto 2021-04-29 01:07:08 +02:00
parent 96396d3404
commit f166a6f4fc

View File

@ -45,7 +45,7 @@ void Discord::postModcallWebhook(QString name, QString reason, int current_area)
nam->post(request, QJsonDocument(json).toJson());
if (server->areas[current_area]->log_type == "modcall" && server->webhook_sendfile) {
if (server->webhook_sendfile) {
QHttpMultiPart* construct = new QHttpMultiPart();
request.setHeader(QNetworkRequest::ContentTypeHeader, "multipart/form-data; boundary=" + construct->boundary());