I use startWith again

This commit is contained in:
apa420 2018-07-04 13:59:57 +02:00 committed by fourtf
parent 2524bb8af6
commit 9754d1c350

View file

@ -231,7 +231,7 @@ MessagePtr TwitchMessageBuilder::build()
QString linkString = this->matchLink(string); QString linkString = this->matchLink(string);
auto fontStyle = FontStyle::ChatMedium; auto fontStyle = FontStyle::ChatMedium;
if (string[0] == '@' && app->settings->usernameBold) { if (string.startsWith('@') && app->settings->usernameBold) {
fontStyle = FontStyle::ChatMediumBold; fontStyle = FontStyle::ChatMediumBold;
} }