summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-24 20:31:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-24 20:31:35 +0300
commit4a86731399f158e08ec272fe9a5fc0f0fa0dbad6 (patch)
tree1dfa56ec4ab92f594ea83989efb52094940e765d /src/mir_app
parent3737eafbc89c31085e18d21d6db6e71e9515dd52 (diff)
fixes #4756 (Плагины сообшений: отдать доступность кнопок форматирования полностью на откуп протоколу)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/srmm_base.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 66a7fb9d86..b53ca52b13 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -546,9 +546,7 @@ bool CSrmmBaseDialog::OnInitDialog()
// three buttons below are initiated inside this call, so button creation must precede subclassing
Srmm_CreateToolbarIcons(this, isChat() ? BBBF_ISCHATBUTTON : BBBF_ISIMBUTTON);
- if ((CallContactService(m_hContact, PS_GETCAPS, PFLAGNUM_4) & PF4_SERVERFORMATTING) == 0)
- m_bSendFormat = false;
-
+ m_bSendFormat = ((CallContactService(m_hContact, PS_GETCAPS, PFLAGNUM_4) & PF4_SERVERFORMATTING) != 0);
if (!m_bSendFormat) {
m_btnBold.Disable();
m_btnItalic.Disable();