diff options
author | George Hazan <ghazan@miranda.im> | 2022-11-12 22:45:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-11-12 22:45:50 +0300 |
commit | 62885e49dbc4579f2883a86c570c7644b7a4b472 (patch) | |
tree | 3ce8e88dda2d7fb12043fee174e0bb9ffece791b /protocols | |
parent | 828fd031e79ddbdc663b7841c8225df1f7d22e1d (diff) |
WhatsApp: fix for bbcodes
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/WhatsApp/src/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index 4f11f5821c..2fde05e080 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -427,10 +427,10 @@ void WhatsAppProto::GetMessageContent( { if (szCaption) { if (m_bUseBbcodes) - txt.Append("<b>"); + txt.Append("[b]"); txt.Append(szCaption); if (m_bUseBbcodes) - txt.Append("</b>"); + txt.Append("[/b]"); txt.Append("\n"); } @@ -465,10 +465,10 @@ CMStringA WhatsAppProto::GetMessageText(const Wa__Message *pMessage) if (auto *pExt = pMessage->extendedtextmessage) { if (pExt->title) { if (m_bUseBbcodes) - szMessageText.Append("<b>"); + szMessageText.Append("[b]"); szMessageText.Append(pExt->title); if (m_bUseBbcodes) - szMessageText.Append("</b>"); + szMessageText.Append("[/b]"); szMessageText.Append("\n"); } |