From a0973b8460f258b634d4236313f9dbd488bf38bb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 12 Aug 2022 13:29:28 +0300 Subject: fixes #3157 (Jabber: do not add : when user issue a /me command) --- plugins/NewStory/src/history_array.cpp | 5 +---- plugins/TabSRMM/src/chat_log.cpp | 6 ++---- plugins/TabSRMM/src/msgs.cpp | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 6ce9ed2116..87571efe9c 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -218,11 +218,8 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, LOGINFO *lin) CMStringW wszText; bool bTextUsed = Chat_GetDefaultEventDescr(si, lin, wszText); - if (!bTextUsed && lin->ptszText) { - if (!wszText.IsEmpty()) - wszText.Append(L": "); + if (!bTextUsed && lin->ptszText) wszText.Append(g_chatApi.RemoveFormatting(lin->ptszText)); - } auto &p = allocateItem(); p.hContact = si->hContact; diff --git a/plugins/TabSRMM/src/chat_log.cpp b/plugins/TabSRMM/src/chat_log.cpp index ad6690c4d8..89559fd94d 100644 --- a/plugins/TabSRMM/src/chat_log.cpp +++ b/plugins/TabSRMM/src/chat_log.cpp @@ -229,11 +229,9 @@ static void AddEventToBuffer(CMStringA &str, LOGSTREAMDATA *streamData) bool bTextUsed = Chat_GetDefaultEventDescr(streamData->si, streamData->lin, wszCaption); if (!wszCaption.IsEmpty()) Log_AppendRTF(streamData, !bTextUsed, str, wszCaption); - if (!bTextUsed && streamData->lin->ptszText) { - if (!wszCaption.IsEmpty()) - Log_AppendRTF(streamData, false, str, L": "); + + if (!bTextUsed && streamData->lin->ptszText) Log_AppendRTF(streamData, false, str, streamData->lin->ptszText); - } } char* Log_CreateRtfHeader(void) diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index c720434072..010daf2a9d 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -29,7 +29,7 @@ #include "stdafx.h" -#define IDI_CORE_LOAD 132 // icon id for the "connecting" icon +#define IDI_CORE_LOAD 132 // icon id for the "connecting" icon static HANDLE hUserPrefsWindowLis = nullptr; HMODULE g_hMsftedit; -- cgit v1.2.3