fix: use login name when parsing highlights (#5295)

This commit is contained in:
nerix
2024-04-02 21:59:59 +02:00
committed by GitHub
parent 92e75784fc
commit 8db0bb464d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -123,6 +123,7 @@
- Bugfix: Truncated IRC messages to be at most 512 bytes. (#5246)
- Bugfix: Fixed a data race when disconnecting from Twitch PubSub. (#4771)
- Bugfix: Fixed messages not immediately disappearing when clearing the chat. (#5282)
- Bugfix: Fixed highlights triggering for ignored users in announcements. (#5295)
- Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978)
- Dev: Change clang-format from v14 to v16. (#4929)
- Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791)
+2 -2
View File
@@ -150,7 +150,7 @@ void SharedMessageBuilder::parseUsername()
void SharedMessageBuilder::parseHighlights()
{
if (getSettings()->isBlacklistedUser(this->ircMessage->nick()))
if (getSettings()->isBlacklistedUser(this->message().loginName))
{
// Do nothing. We ignore highlights from this user.
return;
@@ -158,7 +158,7 @@ void SharedMessageBuilder::parseHighlights()
auto badges = SharedMessageBuilder::parseBadgeTag(this->tags);
auto [highlighted, highlightResult] = getIApp()->getHighlights()->check(
this->args, badges, this->ircMessage->nick(), this->originalMessage_,
this->args, badges, this->message().loginName, this->originalMessage_,
this->message().flags);
if (!highlighted)