mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix: show correct error in 'pk;debug proxy' when autoproxy is disabled for discord account
This commit is contained in:
parent
b30e2a01e3
commit
9dd3fba7e6
3 changed files with 6 additions and 4 deletions
|
|
@ -43,6 +43,10 @@ public class ProxyMatcher
|
|||
{
|
||||
match = default;
|
||||
|
||||
if (!ctx.AllowAutoproxy)
|
||||
throw new ProxyService.ProxyChecksFailedException(
|
||||
"Autoproxy is disabled for your account. Type `pk;cfg autoproxy account enable` to re-enable it.");
|
||||
|
||||
// Skip autoproxy match if we hit the escape character
|
||||
if (messageContent.StartsWith(AutoproxyEscapeCharacter))
|
||||
throw new ProxyService.ProxyChecksFailedException(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue