Created
July 31, 2016 21:58
-
-
Save sm00th/3c3e7b53a7e66784a6b2459680126528 to your computer and use it in GitHub Desktop.
bitlbee-discord: add mfa debug info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/discord-http.c b/src/discord-http.c | |
index 92c2d5f..48d843d 100644 | |
--- a/src/discord-http.c | |
+++ b/src/discord-http.c | |
@@ -120,6 +120,7 @@ static void discord_http_mfa_cb(struct http_request *req) | |
{ | |
struct im_connection *ic = req->data; | |
+ g_print("%s: %s\n", __func__, req->reply_body); | |
json_value *js = json_parse(req->reply_body, req->body_size); | |
if (!js || js->type != json_object) { | |
imcb_error(ic, "Failed to parse json reply."); | |
@@ -146,6 +147,7 @@ static void discord_http_login_cb(struct http_request *req) | |
{ | |
struct im_connection *ic = req->data; | |
+ g_print("%s: %s\n", __func__, req->reply_body); | |
json_value *js = json_parse(req->reply_body, req->body_size); | |
if (!js || js->type != json_object) { | |
imcb_error(ic, "Failed to parse json reply."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment