From 12a21d5cdf92fcefe8283af5392d4c5358f900e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 29 Sep 2024 20:38:14 +0300 Subject: two atavisms with old chat engine formatting removed --- plugins/TabSRMM/src/chat_tools.cpp | 2 +- plugins/TabSRMM/src/muchighlight.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index e09c6ff4a0..31682a5f0e 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -184,7 +184,7 @@ passed: if (iNewEvent == GC_EVENT_MESSAGE) { ShowPopup(si->hContact, si, g_chatApi.getIcon(GC_EVENT_MESSAGE), si->pszModule, si->ptszName, clr ? clr : g_chatApi.aFonts[9].color, - L"%s%s:%s %s", bbStart, gce->pszNick.w, bbEnd, g_chatApi.RemoveFormatting(gce->pszText.w)); + L"%s%s:%s %s", bbStart, gce->pszNick.w, bbEnd, gce->pszText.w); } else oldDoPopup(si, gce); diff --git a/plugins/TabSRMM/src/muchighlight.cpp b/plugins/TabSRMM/src/muchighlight.cpp index 0e34837673..7f35c72039 100644 --- a/plugins/TabSRMM/src/muchighlight.cpp +++ b/plugins/TabSRMM/src/muchighlight.cpp @@ -117,8 +117,7 @@ bool CMUCHighlight::match(const GCEVENT *pgce, const SESSION_INFO *psi, uint32_t return false; if ((m_iMode & MATCH_TEXT) && (dwFlags & MATCH_TEXT) && (m_fHighlightMe || m_iTextPatterns > 0) && psi != nullptr) { - wchar_t *p = g_chatApi.RemoveFormatting(pgce->pszText.w); - p = NEWWSTR_ALLOCA(p); + wchar_t *p = NEWWSTR_ALLOCA(pgce->pszText.w); if (p == nullptr) return false; CharLower(p); -- cgit v1.2.3