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