Skip to content

Commit e9269fc

Browse files
committed
🐛 Fix broken in-game invites for opponents with brackets in their names
1 parent 331dffa commit e9269fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

BanchoBot/functions/tournaments/matchup/runMatchup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,9 @@ export default async function runMatchup (matchup: Matchup, replace = false, aut
865865
if (matchup.stage!.stageType === StageType.Qualifiers)
866866
lobbyName = `${matchup.stage!.tournament.abbreviation}: (${convertDateToDDDHH(matchup.date)} QL) vs (${matchup.teams?.map(team => team.abbreviation).join(", ")})`;
867867

868+
// Fix broken in-game invites for opponents with brackets in their names
869+
lobbyName = lobbyName.replace(/\[]/g, "");
870+
868871
log(matchup, `Creating lobby with name ${lobbyName}`);
869872
const mpChannel = await banchoClient.createLobby(lobbyName);
870873
const mpLobby = mpChannel.lobby;

0 commit comments

Comments
 (0)