Sanitize more inputs

This commit is contained in:
Ske
2019-10-18 13:14:36 +02:00
parent 1988b29fbc
commit 83c709b69d
9 changed files with 37 additions and 37 deletions

View File

@@ -166,12 +166,12 @@ namespace PluralKit.Bot.CommandSystem
if (input.Length == 5)
{
if (_senderSystem != null)
return $"Member with ID or name `{input}` not found.";
return $"Member with ID `{input}` not found."; // Accounts without systems can't query by name
return $"Member with ID or name \"{input.SanitizeMentions()}\" not found.";
return $"Member with ID \"{input.SanitizeMentions()}\" not found."; // Accounts without systems can't query by name
}
if (_senderSystem != null)
return $"Member with name `{input}` not found. Note that a member ID is 5 characters long.";
return $"Member with name \"{input.SanitizeMentions()}\" not found. Note that a member ID is 5 characters long.";
return $"Member not found. Note that a member ID is 5 characters long.";
}