Merge pull request #931 from apa420/apa-fixed-automod-names

If bold usernames was ticked it wouldn't show who the automod caught
This commit is contained in:
pajlada 2019-01-25 14:20:38 +01:00 committed by GitHub
commit e6d5ede483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,9 @@ std::pair<MessagePtr, MessagePtr> makeAutomodMessage(
Image::fromPixmap(getApp()->resources->twitch.automod),
MessageElementFlag::BadgeChannelAuthority)
->setTooltip("AutoMod");
builder.emplace<TextElement>("AutoMod:", MessageElementFlag::BoldUsername,
MessageColor(QColor("blue")),
FontStyle::ChatMediumBold);
builder.emplace<TextElement>(
"AutoMod:", MessageElementFlag::NonBoldUsername,
MessageColor(QColor("blue")));
@ -63,6 +66,11 @@ std::pair<MessagePtr, MessagePtr> makeAutomodMessage(
builder.emplace<TimestampElement>();
builder.message().flags.set(MessageFlag::PubSub);
builder
.emplace<TextElement>(
action.target.name + ":", MessageElementFlag::BoldUsername,
MessageColor(QColor("red")), FontStyle::ChatMediumBold)
->setLink({Link::UserInfo, action.target.name});
builder
.emplace<TextElement>(action.target.name + ":",
MessageElementFlag::NonBoldUsername,