summaryrefslogtreecommitdiff
path: root/protocols/Discord
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-26 21:56:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-26 21:56:21 +0300
commit92f3792e0d61b20afcbeb929c61f7028ab0d18a5 (patch)
tree782e852756223796b4e01591117350db46af3e4e /protocols/Discord
parentc4683b0e13f65b773acb765ab1905819a971b0cd (diff)
more logs
Diffstat (limited to 'protocols/Discord')
-rw-r--r--protocols/Discord/src/dispatch.cpp2
1 files changed, 2 insertions, 0 deletions
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();