Emergency workaround for message send failures.
This is a temporary workaround for #182, which, unfortunately, brings #7 back. This will have to do until a proper fix is ready.
This commit is contained in:
parent
2aec1fc456
commit
8c81103d6e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue