diff options
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r-- | protocols/Discord/src/server.cpp | 3 |
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()); |