mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): check proxy tag length when overwriting
This commit is contained in:
parent
85ab9c9ad9
commit
2745ee6156
1 changed files with 4 additions and 0 deletions
|
|
@ -114,6 +114,10 @@ public class MemberProxy
|
|||
throw Errors.GenericCancelled();
|
||||
}
|
||||
|
||||
if (requestedTag.ProxyString.Length > Limits.MaxProxyTagLength)
|
||||
throw new PKError(
|
||||
$"Proxy tag too long ({requestedTag.ProxyString.Length} > {Limits.MaxProxyTagLength} characters).");
|
||||
|
||||
if (!await WarnOnConflict(requestedTag))
|
||||
throw Errors.GenericCancelled();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue