From 92f3792e0d61b20afcbeb929c61f7028ab0d18a5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Jan 2017 21:56:21 +0300 Subject: more logs --- protocols/Discord/src/dispatch.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/Discord/src/dispatch.cpp') diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 862c6b4b23..0dc544eab1 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -205,6 +205,7 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot) wszText.AppendFormat(L" (%s %s)", TranslateT("edited at"), edited.as_mstring().c_str()); if (pUser->bIsPrivate) { + debugLogA("store a message from private user %lld, channel id %lld", pUser->id, pUser->channelId); ptrA buf(mir_utf8encodeW(wszText)); recv.timestamp = (DWORD)StringToDate(pRoot["timestamp"].as_mstring()); recv.szMessage = buf; @@ -216,6 +217,7 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot) setId(pUser->hContact, DB_KEY_LASTMSGID, messageId); } else { + debugLogA("store a message into the group channel id %lld", channelId); CMStringW wszUserName = pRoot["author"]["id"].as_mstring(); CMStringW wszUserNick = pRoot["author"]["username"].as_mstring() + L"#" + pRoot["author"]["discriminator"].as_mstring(); -- cgit v1.2.3