summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-08-12 14:21:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-08-12 14:21:02 +0300
commitfddf088c0c3c922d61edd84d6316ca8b2b872f2b (patch)
tree2628c437bfb2920232696c14e119ebd6fdfeb4d6 /plugins/NewStory
parenta0973b8460f258b634d4236313f9dbd488bf38bb (diff)
fix for the previous commit (we still need a space)
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history_array.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index 87571efe9c..f622814d83 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -218,8 +218,11 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, LOGINFO *lin)
CMStringW wszText;
bool bTextUsed = Chat_GetDefaultEventDescr(si, lin, wszText);
- if (!bTextUsed && lin->ptszText)
+ if (!bTextUsed && lin->ptszText) {
+ if (!wszText.IsEmpty())
+ wszText.AppendChar(' ');
wszText.Append(g_chatApi.RemoveFormatting(lin->ptszText));
+ }
auto &p = allocateItem();
p.hContact = si->hContact;