From 9c26c45607d055d693270b2bf5d2912cffd51ee4 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 17 Jun 2020 02:19:25 -0400 Subject: [PATCH] fix a bug in authscript fallback handling --- irc/accounts.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/irc/accounts.go b/irc/accounts.go index c0023747..f34acde1 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -1070,9 +1070,7 @@ func (am *AccountManager) AuthenticateByPassphrase(client *Client, accountName s AuthScriptInput{AccountName: accountName, Passphrase: passphrase, IP: client.IP().String()}) if err != nil { am.server.logger.Error("internal", "failed shell auth invocation", err.Error()) - return err - } - if output.Success { + } else if output.Success { if output.AccountName != "" { accountName = output.AccountName }