diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-30 12:14:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-30 12:14:02 +0300 |
commit | 0abc2590e4c11f2b852e87640c5c72b817115120 (patch) | |
tree | bca4cde5813b1db09a1fd33b5e71a29326a8a333 /plugins/TabSRMM | |
parent | fcb354a6197133e3d3929b14b55352739688ad50 (diff) |
fix for sending %% in tabSRMM group chats
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 7446488f63..dcff6711e9 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -823,15 +823,20 @@ void CMsgDialog::onClick_Ok(CCtrlButton *) return;
}
- // don't parse text formatting when the message contains curly braces - these are used by the rtf syntax
- // and the parser currently cannot handle them properly in the text - XXX needs to be fixed later.
- FINDTEXTEX fi = { 0 };
- fi.chrg.cpMin = 0;
- fi.chrg.cpMax = -1;
- fi.lpstrText = L"{";
- int final_sendformat = m_message.SendMsg(EM_FINDTEXTEX, FR_DOWN, (LPARAM)& fi) == -1 ? m_SendFormat : 0;
- fi.lpstrText = L"}";
- final_sendformat = m_message.SendMsg(EM_FINDTEXTEX, FR_DOWN, (LPARAM)& fi) == -1 ? final_sendformat : 0;
+ int final_sendformat;
+
+ if (!isChat()) {
+ // don't parse text formatting when the message contains curly braces - these are used by the rtf syntax
+ // and the parser currently cannot handle them properly in the text - XXX needs to be fixed later.
+ FINDTEXTEX fi = { 0 };
+ fi.chrg.cpMin = 0;
+ fi.chrg.cpMax = -1;
+ fi.lpstrText = L"{";
+ int final_sendformat = m_message.SendMsg(EM_FINDTEXTEX, FR_DOWN, (LPARAM)&fi) == -1 ? m_SendFormat : 0;
+ fi.lpstrText = L"}";
+ final_sendformat = m_message.SendMsg(EM_FINDTEXTEX, FR_DOWN, (LPARAM)&fi) == -1 ? final_sendformat : 0;
+ }
+ else final_sendformat = true;
if (GetSendButtonState(m_hwnd) == PBS_DISABLED)
return;
|