mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-25 07:22:09 -05:00
Tours: Don't allow pipes in names set by /tour create
This commit is contained in:
parent
0af724a0f0
commit
3d1790fab9
|
|
@ -1297,6 +1297,11 @@ function createTournament(
|
|||
output.errorReply("You cannot have a player cap that is less than 2.");
|
||||
return;
|
||||
}
|
||||
if (name) {
|
||||
output.checkChat(name);
|
||||
if (name.includes('|')) output.errorReply(`The tournament's name cannot include the | symbol.`);
|
||||
return;
|
||||
}
|
||||
const tour = room.game = new Tournament(
|
||||
room, format, createTournamentGenerator(generator, generatorMod, output)!, playerCap, isRated, name
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user