Skip to content

Commit

Permalink
Never force challenge battles public (#10664)
Browse files Browse the repository at this point in the history
  • Loading branch information
MathyFurret authored Nov 10, 2024
1 parent ff8c9a0 commit 073db5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/room-battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ export class RoomBattle extends RoomGame<RoomBattlePlayer> {
checkForcedUserSettings(user: User) {
this.forcedSettings = {
modchat: this.forcedSettings.modchat || RoomBattle.battleForcedSetting(user, 'modchat'),
privacy: this.forcedSettings.privacy || RoomBattle.battleForcedSetting(user, 'privacy'),
privacy: !!this.options.rated && (this.forcedSettings.privacy || RoomBattle.battleForcedSetting(user, 'privacy')),
};
if (
this.players.some(p => p.getUser()?.battleSettings.special) ||
Expand Down

0 comments on commit 073db5e

Please sign in to comment.