diff --git a/pkg/server/server_command.go b/pkg/server/server_command.go index 8207a28..37f65b3 100644 --- a/pkg/server/server_command.go +++ b/pkg/server/server_command.go @@ -252,7 +252,7 @@ COMMANDS: clientGame := s.gameByClient(cmd.client) if clientGame != nil && clientGame.client1 != cmd.client && clientGame.client2 != cmd.client { switch keyword { - case bgammon.CommandHelp, "h", bgammon.CommandJSON, bgammon.CommandList, "ls", bgammon.CommandBoard, "b", bgammon.CommandLeave, "l", bgammon.CommandReplay, bgammon.CommandSet, bgammon.CommandPong, bgammon.CommandDisconnect, bgammon.CommandMOTD, bgammon.CommandBroadcast, bgammon.CommandShutdown: + case bgammon.CommandHelp, "h", bgammon.CommandJSON, bgammon.CommandList, "ls", bgammon.CommandBoard, "b", bgammon.CommandLeave, "l", bgammon.CommandReplay, bgammon.CommandSet, bgammon.CommandPassword, bgammon.CommandPong, bgammon.CommandDisconnect, bgammon.CommandMOTD, bgammon.CommandBroadcast, bgammon.CommandShutdown: // These commands are allowed to be used by spectators. default: cmd.client.sendNotice(gotext.GetD(cmd.client.language, "Command ignored: You are spectating this match."))