Skip to content

Commit

Permalink
more minimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirain1700 committed Jun 6, 2023
1 parent b533f53 commit 376aeef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,6 @@ export class Room {
});
}

onTournamentCreateError(reason: string): void {
Tournaments.onTournamentCreateError(this, reason);
if (this.searchChallenge) this.searchChallenge.end();
}

startHangman(answer: string, hint: string, user: User): void {
this.say("/hangman create " + answer + ", " + hint, {
dontCheckFilter: true,
Expand Down
2 changes: 2 additions & 0 deletions src/tournaments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ export class Tournaments {

onTournamentCreateError(room: Room, reason: string): void {
room.say("Could not create a tournament: " + reason);

if (room.searchChallenge) room.searchChallenge.end();
}

resolveFormatFromInput(originalTargets: readonly string[], room?: Room): string | IFormat {
Expand Down

0 comments on commit 376aeef

Please sign in to comment.