From 8c81103d6e69117ee07381d15417bc01a4f1e21d Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Fri, 30 Nov 2018 08:35:18 +0100 Subject: [PATCH] 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. --- src/discord-http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/discord-http.c b/src/discord-http.c index fd7e27c..6100a55 100644 --- a/src/discord-http.c +++ b/src/discord-http.c @@ -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"