diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-26 17:39:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-26 17:39:09 +0300 |
commit | 0f00ad85feaa2fdef2c38f385cfe6ae5e46b8b05 (patch) | |
tree | fad9b77ddbb007f86006f2ffaa054b3ed0f20f6d | |
parent | aef55024d4b3ea568091485c20fce421632115dc (diff) |
Discord: fix for a problem with % sign in group chats
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 13441bcf08..fa351bb0f0 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -419,6 +419,7 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot, bool bIsNew) } ParseSpecialChars(si, wszText); + wszText.Replace(L"%", L"%%"); GCEVENT gce = { m_szModuleName, 0, GC_EVENT_MESSAGE }; gce.pszID.w = pUser->wszUsername; |