From 37ed697696ed21b8bb8fbc0c537c74a49a22f06a Mon Sep 17 00:00:00 2001 From: Toutsu Date: Tue, 9 Jun 2026 13:33:53 +0300 Subject: [PATCH] fix(bot): trim misleading comment in IsComplete The previous comment claimed a 0 MaxPlayers would also be blocked, but the code never actually enforced that. The wizard's text-input path already guarantees cap >= MinCapacity, so 0 is unreachable. Drop the inaccurate half-sentence to keep the comment faithful to the code. --- .../Features/Sessions/CreateSession/CreateSessionHandler.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/GmRelay.Bot/Features/Sessions/CreateSession/CreateSessionHandler.cs b/src/GmRelay.Bot/Features/Sessions/CreateSession/CreateSessionHandler.cs index 70cf0c6..e3190f8 100644 --- a/src/GmRelay.Bot/Features/Sessions/CreateSession/CreateSessionHandler.cs +++ b/src/GmRelay.Bot/Features/Sessions/CreateSession/CreateSessionHandler.cs @@ -230,10 +230,7 @@ public sealed class CreateSessionHandler { if (p.Single?.ScheduledAt is null) missingFields.Add("дата/время"); // MaxPlayers = null is a valid "♾ Без лимита" choice - // (see GameCreationWizard.ApplyCapacityChoice "no_limit"). Only a - // missing wizard step on the numeric-input path is a real defect; - // a non-null 0 also blocks (zero players is never what the user - // asked for). Treat null as "no limit" and accept it. + // (see GameCreationWizard.ApplyCapacityChoice "no_limit"). } else {