summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-29 20:38:14 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-29 20:38:19 +0300
commit12a21d5cdf92fcefe8283af5392d4c5358f900e7 (patch)
tree10b43c63a1ed6c56222860f77fc388c15663bcc0 /plugins
parent35d047b7c37ce46c63f3c349220a594b45ec1a1c (diff)
two atavisms with old chat engine formatting removed
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_array.cpp2
-rw-r--r--plugins/TabSRMM/src/chat_tools.cpp2
-rw-r--r--plugins/TabSRMM/src/muchighlight.cpp3
3 files changed, 3 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index dff781605f..d4e2cf5634 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -520,7 +520,7 @@ void HistoryArray::addChatEvent(NewstoryListData *pOwner, SESSION_INFO *si, cons
if (!bTextUsed && lin->ptszText) {
if (!wszText.IsEmpty())
wszText.AppendChar(' ');
- wszText.Append(g_chatApi.RemoveFormatting(lin->ptszText));
+ wszText.Append(lin->ptszText);
}
p.wtext = wszText.Detach();
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);