1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 16:48:27 -05:00

profanity determent actually reads the configuration enable setting :P

removed unneeded semi colon in template
fixed accidentally truncating last character of message in activity
This commit is contained in:
RaidMax
2018-03-29 23:13:40 -05:00
parent 433436293a
commit 71313b76d9
6 changed files with 37 additions and 20 deletions

View File

@ -396,5 +396,18 @@ namespace SharedLibrary
Console.Write($"{question}? [y/n]: ");
return (Console.ReadLine().ToLower().FirstOrDefault() as char?) == 'y';
}
public static string PromptString(string question)
{
Console.Write($"{question}: ");
string response;
do
{
response = Console.ReadLine();
} while (string.IsNullOrWhiteSpace(response));
return response;
}
}
}