X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fmatrix%2Fmatrix.qc;h=3ce4fcfc8ec01a3506d69bc12ab7ae0f89b07afd;hb=5d48529da4d86c0db66c4cab4902f3884af387ca;hp=c399c2aa6cf86e2d9a9ba910667c8cd1c926ba43;hpb=9185b58da6fe5f2b095d7066577e1e024b4d2798;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/matrix/matrix.qc b/qcsrc/lib/matrix/matrix.qc index c399c2aa6..3ce4fcfc8 100644 --- a/qcsrc/lib/matrix/matrix.qc +++ b/qcsrc/lib/matrix/matrix.qc @@ -147,7 +147,7 @@ void MX_JLF_(entity fh, entity pass, int status) switch (status) { case URL_READY_CANWRITE: { fh.url_content_type = "application/json"; - url_fputs(fh, sprintf("{}", pass.message)); + url_fputs(fh, sprintf("{%s}", pass.message)); url_fclose(fh); break; } @@ -204,7 +204,8 @@ void MX_Say_(entity fh, entity pass, int status) fh.url_verb = "PUT"; fh.url_content_type = "application/json"; url_fputs(fh, sprintf("{\"msgtype\": \"m.text\", \"body\": \"%s\"}", pass.message)); - strunzone(pass.message); delete(pass); + strfree(pass.message); + delete(pass); url_fclose(fh); break; }