From 9754d1c3502faf728b0c9d2a3cce9212e1fd5763 Mon Sep 17 00:00:00 2001 From: apa420 Date: Wed, 4 Jul 2018 13:59:57 +0200 Subject: [PATCH] I use startWith again --- src/providers/twitch/TwitchMessageBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index 5b24a7905..aa6ab58f8 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -231,7 +231,7 @@ MessagePtr TwitchMessageBuilder::build() QString linkString = this->matchLink(string); auto fontStyle = FontStyle::ChatMedium; - if (string[0] == '@' && app->settings->usernameBold) { + if (string.startsWith('@') && app->settings->usernameBold) { fontStyle = FontStyle::ChatMediumBold; }