From 80aa77372bed94729a42e7ea1d603f56779a2d4a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 12 Jul 2019 11:49:01 -0400 Subject: [PATCH] fix spurious error message --- irc/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/accounts.go b/irc/accounts.go index cf976e38..3b13bcca 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -114,7 +114,7 @@ func (am *AccountManager) buildNickToAccountIndex() { err := json.Unmarshal([]byte(rawPrefs), &prefs) if err == nil && prefs.NickEnforcement != NickEnforcementOptional { accountToMethod[account] = prefs.NickEnforcement - } else { + } else if err != nil { am.server.logger.Error("internal", "corrupt account creds", account) } }