Skip to content

Commit

Permalink
Emergency workaround for message send failures.
Browse files Browse the repository at this point in the history
This is a temporary workaround for sm00th#182, which, unfortunately, brings sm00th#7
back. This will have to do until a proper fix is ready.
  • Loading branch information
sm00th committed Nov 30, 2018
1 parent 2aec1fc commit 8c81103
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/discord-http.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,7 @@ void discord_http_send_msg(struct im_connection *ic, const char *id,
emsg = nmsg;
}

g_string_printf(content, "{\"content\":\"%s\", \"nonce\":\"%s\"}",
emsg, dd->nonce);
g_string_printf(content, "{\"content\":\"%s\"}", emsg);
g_free(emsg);
g_string_printf(request, "POST /api/channels/%s/messages HTTP/1.1\r\n"
"Host: %s\r\n"
Expand Down

0 comments on commit 8c81103

Please sign in to comment.