Fixed the first link being broken in /mods and /vips (#3349)

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2021-11-13 11:11:18 +00:00
committed by GitHub
parent 85f6795f70
commit 6b3a420e42
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -855,8 +855,11 @@ void IrcMessageHandler::handleNoticeMessage(Communi::IrcNoticeMessage *message)
"IrcMessageHandler::handleNoticeMessage. Twitch specific "
"functionality called in non twitch channel");
TwitchMessageBuilder::modsOrVipsSystemMessage(
msgParts.at(0), msgParts.at(1).split(", "), tc, &builder);
auto users = msgParts.at(1)
.mid(1) // there is a space before the first user
.split(", ");
TwitchMessageBuilder::modsOrVipsSystemMessage(msgParts.at(0), users,
tc, &builder);
channel->addMessage(builder.release());
}
else