Skip to content

Commit abee79b

Browse files
committed
actually disallow kicking people if you're not a player in a running game
1 parent ca85374 commit abee79b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ZkLobbyServer/autohost/Commands/CmdKick.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public override string Arm(ServerBattle battle, Say e, string arguments = null)
3333
if (e != null && battle.spring.IsRunning && battle.spring.LobbyStartContext?.Players.Any(x => x.Name == e.User && !x.IsSpectator) == false)
3434
{
3535
battle.Respond(e, "Only players can invoke this during a game");
36+
return null;
3637
}
3738
return $"do you want to kick {target}?";
3839
}

0 commit comments

Comments
 (0)