From 7aaa89c65c04082f1b51531647df3ec79cc6ce01 Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 27 Aug 2021 22:27:40 -0400 Subject: [PATCH] fix: don't automatically prompt user to unlink the current account if no arguments are passed --- PluralKit.Bot/Commands/SystemLink.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PluralKit.Bot/Commands/SystemLink.cs b/PluralKit.Bot/Commands/SystemLink.cs index c2348f84..d81d8154 100644 --- a/PluralKit.Bot/Commands/SystemLink.cs +++ b/PluralKit.Bot/Commands/SystemLink.cs @@ -47,9 +47,7 @@ namespace PluralKit.Bot await using var conn = await _db.Obtain(); ulong id; - if (!ctx.HasNext()) - id = ctx.Author.Id; - else if (!ctx.MatchUserRaw(out id)) + if (!ctx.MatchUserRaw(out id)) throw new PKSyntaxError("You must pass an account to link with (either ID or @mention)."); var accountIds = (await _repo.GetSystemAccounts(conn, ctx.System.Id)).ToList();