summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-02 21:20:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-02 21:20:40 +0300
commit38d7885b91b6026b1a518e8c7d34172a08da4c87 (patch)
treee687f597a185097e43f2815600a6ded03e157075 /protocols/Discord/src/server.cpp
parentb8b21e44668a2528932dd134f3791f2eabf68cf2 (diff)
Discord: message formatting now includes the list of attachments (if present)
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r--protocols/Discord/src/server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp
index 5d86ec1721..203380c994 100644
--- a/protocols/Discord/src/server.cpp
+++ b/protocols/Discord/src/server.cpp
@@ -92,7 +92,8 @@ void CDiscordProto::OnReceiveHistory(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest
else
dbei.flags &= ~DBEF_READ;
- CMStringA szBody(ptrA(mir_utf8encodeW(p["content"].as_mstring())));
+ CMStringW wszText = PrepareMessageText(p);
+ CMStringA szBody(ptrA(mir_utf8encodeW(wszText)));
szBody.AppendFormat("%c%lld", 0, msgid);
dbei.timestamp = StringToDate(p["timestamp"].as_mstring());