summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/history_log.cpp')
-rw-r--r--plugins/NewStory/src/history_log.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp
index 87b0b7fc9d..35f3b47c97 100644
--- a/plugins/NewStory/src/history_log.cpp
+++ b/plugins/NewStory/src/history_log.cpp
@@ -60,10 +60,13 @@ public:
SendMessage(m_hwnd, NSM_ADDEVENTS, (LPARAM)&tmp, 0);
}
- void LogEvents(SESSION_INFO *si, int iStart, bool) override
+ void LogEvents(const LOGINFO *lin) override
{
- for (int i=iStart; i < si->arEvents.getCount(); i++)
- SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)&si->arEvents[i]);
+ if (lin == nullptr) {
+ for (auto &it: m_pDlg.getChat()->arEvents)
+ SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)it);
+ }
+ else SendMessage(m_hwnd, NSM_ADDCHATEVENT, (WPARAM)m_pDlg.getChat(), (LPARAM)lin);
}
void Resize() override