fix(bot): check proxy tag length when overwriting
This commit is contained in:
parent
85ab9c9ad9
commit
2745ee6156
@ -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…
Reference in New Issue
Block a user