From 76a9729f6184eaa4db5b1e762c1dcfc352d0ff79 Mon Sep 17 00:00:00 2001 From: deccer Date: Fri, 11 Sep 2020 23:05:59 +0400 Subject: [PATCH] Fixes account creation with terminals that use redirection (git bash) (#239) - [X] Fixes account creation with terminals that use redirection Bumps release version --- Projects/UOContent/Misc/AccountPrompt.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Projects/UOContent/Misc/AccountPrompt.cs b/Projects/UOContent/Misc/AccountPrompt.cs index 1e97064a5..40ab9fdd1 100644 --- a/Projects/UOContent/Misc/AccountPrompt.cs +++ b/Projects/UOContent/Misc/AccountPrompt.cs @@ -10,9 +10,10 @@ namespace Server.Misc if (Accounts.Count == 0) { Console.WriteLine("This server has no accounts."); - Console.Write("Do you want to create the owner account now? (y/n)"); + Console.Write("Do you want to create the owner account now? (y/n): "); - if (Console.ReadKey(true).Key == ConsoleKey.Y) + var answer = Console.ReadLine(); + if (answer == "y" || answer == "Y") { Console.WriteLine(); @@ -30,7 +31,6 @@ namespace Server.Misc else { Console.WriteLine(); - Console.WriteLine("Account not created."); } }