mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-03 15:29:22 +00:00
I guess whitespaces are ok too
This commit is contained in:
parent
d199d3534d
commit
264ea9bb31
@ -27,11 +27,11 @@ namespace CompatBot.Commands
|
||||
{
|
||||
if (expectedNickname.Length < 2 || expectedNickname.Length > 32)
|
||||
{
|
||||
await ctx.ReactWithAsync( Config.Reactions.Failure, "Nickname must be between 2 and 32 characters long", true).ConfigureAwait(false);
|
||||
await ctx.ReactWithAsync(Config.Reactions.Failure, "Nickname must be between 2 and 32 characters long", true).ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!expectedNickname.All(char.IsLetterOrDigit))
|
||||
if (!expectedNickname.All(c => char.IsLetterOrDigit(c) || char.IsWhiteSpace(c)))
|
||||
{
|
||||
await ctx.ReactWithAsync(Config.Reactions.Failure, "Nickname must follow Rule 7", true).ConfigureAwait(false);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user