1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

Fix IP parsing bug introduced with IW4Parser

Additional fix for Webfront Index OoB on _ClientActivity
This commit is contained in:
RaidMax
2019-01-28 18:21:56 -06:00
parent a16df61ffd
commit 271769ca89
4 changed files with 6 additions and 6 deletions

View File

@ -482,7 +482,7 @@ namespace SharedLibraryCore
/// <returns></returns>
public static bool PromptBool(string question, string description = null, bool defaultValue = true)
{
Console.Write($"{question}?{(string.IsNullOrEmpty(description) ? "" : $" ({description}) ")}[y/n]: ");
Console.Write($"{question}?{(string.IsNullOrEmpty(description) ? " " : $" ({description}) ")}[y/n]: ");
char response = Console.ReadLine().ToLower().FirstOrDefault();
return response != 0 ? response == 'y' : defaultValue;
}