Fix issue with VIPs who have Asian Language display names (#4174)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Felanbird
2022-11-21 12:58:32 -05:00
committed by GitHub
parent 82797898c1
commit 518262596a
2 changed files with 5 additions and 10 deletions
@@ -2999,18 +2999,11 @@ void CommandController::initialize(Settings &, Paths &paths)
auto messagePrefix =
QString("The VIPs of this channel are");
auto entries = QStringList();
for (const auto &vip : vipList)
{
entries.append(vip.userName);
}
entries.sort(Qt::CaseInsensitive);
// TODO: sort results?
MessageBuilder builder;
TwitchMessageBuilder::listOfUsersSystemMessage(
messagePrefix, entries, twitchChannel, &builder);
messagePrefix, vipList, twitchChannel, &builder);
channel->addMessage(builder.release());
},