summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-01 14:46:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-01 14:47:44 +0300
commitac719164dbdbc142e15bebc0813d781d0e61b44c (patch)
tree89b6d24473342d7d9f6ef57e273f4f7656c4de3c /plugins/NewStory/src
parent21d1556442289f2c271c96000b0b959b17064958 (diff)
NewStory: group chat's topic to be drawn as "other"
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r--plugins/NewStory/src/history_array.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index be26830325..6d49365e01 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -400,7 +400,6 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin)
switch (lin->iType) {
case GC_EVENT_MESSAGE:
- case GC_EVENT_TOPIC:
case GC_EVENT_INFORMATION:
p.dbe.eventType = EVENTTYPE_MESSAGE;
if (lin->bIsMe)
@@ -415,6 +414,11 @@ void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin)
p.dbe.flags |= DBEF_SENT;
__fallthrough;
+ case GC_EVENT_PART:
+ case GC_EVENT_QUIT:
+ p.dbe.eventType = EVENTTYPE_JABBER_PRESENCE;
+ break;
+
default:
p.dbe.eventType = EVENTTYPE_OTHER;
break;