mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Have /hidereplay turn on /modjoin % once the battle is over (#5667)
This commit is contained in:
parent
41e81a359b
commit
3021826112
|
|
@ -782,6 +782,8 @@ class RoomBattle extends RoomGames.RoomGame {
|
|||
if (parentGame && parentGame.onBattleWin) {
|
||||
parentGame.onBattleWin(this.room, winnerid);
|
||||
}
|
||||
// If the room's replay was hidden, disable users from joining after the game is over
|
||||
if (this.room.hideReplay) this.room.modjoin = '%';
|
||||
this.room.update();
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ class BasicRoom {
|
|||
this.chatRoomData = null;
|
||||
/** @type {boolean | 'hidden' | 'voice'} */
|
||||
this.isPrivate = false;
|
||||
this.hideReplay = false;
|
||||
this.isPersonal = false;
|
||||
/** @type {string | boolean} */
|
||||
this.isHelp = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user