From aa1c16d90d1e5ffc37cfdacc75c8e32d8ff4b322 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sat, 25 Dec 2021 18:35:55 +0100 Subject: [PATCH] Make mods, vips, joined/parted messages searchable (#3426) --- CHANGELOG.md | 1 + src/providers/twitch/TwitchMessageBuilder.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8289f3f4..b849e741b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ - Minor: Add support for Emoji in IRC (#3354) - Minor: Moved `/live` logs to its own subdirectory. (Logs from before this change will still be available in `Channels -> live`). (#3393) - Minor: Sorted usernames in `Users joined/parted` messages alphabetically. (#3421) +- Minor: Mod list, VIP list, and Users joined/parted messages are now searchable. (#3426) - Bugfix: Fix Split Input hotkeys not being available when input is hidden (#3362) - Bugfix: Fixed colored usernames sometimes not working. (#3170) - Bugfix: Restored ability to send duplicate `/me` messages. (#3166) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index 89a48891a..7de01ed77 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -1464,6 +1464,11 @@ void TwitchMessageBuilder::listOfUsersSystemMessage(QString prefix, Channel *channel, MessageBuilder *builder) { + QString text = prefix + users.join(", "); + + builder->message().messageText = text; + builder->message().searchText = text; + builder->emplace(); builder->message().flags.set(MessageFlag::System); builder->message().flags.set(MessageFlag::DoNotTriggerNotification);