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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user