mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Sanitize more inputs
This commit is contained in:
parent
1988b29fbc
commit
83c709b69d
9 changed files with 37 additions and 37 deletions
|
|
@ -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.";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue