Skip to content

Commit e326876

Browse files
authored
fix: automod username placement (#5759)
1 parent a898f8d commit e326876

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
- Minor: When blocking a channel, Chatterino will now warn you about that action. (#5615)
3838
- Minor: Indicate when subscriptions and resubscriptions are for multiple months. (#5642)
3939
- Minor: Added a setting to control whether or not to show "Blocked Term" automod messages. (#5690)
40-
- Minor: Improved AutoMod messaging when messages are blocked due to containing blocked terms. (#5699)
40+
- Minor: Improved AutoMod messaging when messages are blocked due to containing blocked terms. (#5699, #5759)
4141
- Minor: Proxy URL information is now included in the `/debug-env` command. (#5648)
4242
- Minor: Make raid entry message usernames clickable. (#5651)
4343
- Minor: Tabs unhighlight when their content is read in other tabs. (#5649)

src/messages/MessageBuilder.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,9 +1658,8 @@ std::pair<MessagePtr, MessagePtr> MessageBuilder::makeAutomodMessage(
16581658
builder.emplace<BadgeElement>(makeAutoModBadge(),
16591659
MessageElementFlag::BadgeChannelAuthority);
16601660
// AutoMod "username"
1661-
builder2.emplace<TextElement>("AutoMod:", MessageElementFlag::Text,
1662-
AUTOMOD_USER_COLOR,
1663-
FontStyle::ChatMediumBold);
1661+
builder.emplace<TextElement>("AutoMod:", MessageElementFlag::Text,
1662+
AUTOMOD_USER_COLOR, FontStyle::ChatMediumBold);
16641663
// AutoMod header message
16651664
builder.emplace<TextElement>(
16661665
("Held a message for reason: " + action.reason +

0 commit comments

Comments
 (0)