From a6e23e246864458c9d00c469c3b7306086b8d0ed Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 10 Jan 2021 15:22:00 +0100 Subject: [PATCH] Fix anonymous Twitch user ping (#2352) --- CHANGELOG.md | 1 + src/messages/SharedMessageBuilder.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a59380f31..c49e4932e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ - Bugfix: Fix a freeze caused by ignored & replaced phrases followed by Twitch Emotes (#2231) - Bugfix: Fix a crash bug that occurred when moving splits across windows and closing the "parent tab" (#2249, #2259) - Bugfix: Fix a crash bug that occurred when the "Limit message height" setting was enabled and a message was being split up into multiple lines. IRC only. (#2329) +- Bugfix: Fix anonymous users being pinged by "username" justinfan64537 (#2156, #2352) - Dev: Updated minimum required Qt framework version to 5.12. (#2210) - Dev: Migrated `Kraken::getUser` to Helix (#2260) - Dev: Migrated `TwitchAccount::(un)followUser` from Kraken to Helix and moved it to `Helix::(un)followUser`. (#2306) diff --git a/src/messages/SharedMessageBuilder.cpp b/src/messages/SharedMessageBuilder.cpp index 25a82fe2b..ba5a4f613 100644 --- a/src/messages/SharedMessageBuilder.cpp +++ b/src/messages/SharedMessageBuilder.cpp @@ -257,7 +257,8 @@ void SharedMessageBuilder::parseHighlights() std::vector activeHighlights = getSettings()->highlightedMessages.cloneVector(); - if (getSettings()->enableSelfHighlight && currentUsername.size() > 0) + if (!currentUser->isAnon() && getSettings()->enableSelfHighlight && + currentUsername.size() > 0) { HighlightPhrase selfHighlight( currentUsername, getSettings()->showSelfHighlightInMentions,