fix(bot): check proxy tag length when overwriting

This commit is contained in:
spiral 2022-11-17 00:44:00 +00:00
parent 85ab9c9ad9
commit 2745ee6156
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -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();