From c238f07543a3132e238f87a7992b8dab3941860c Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 25 Mar 2020 14:07:43 -0400 Subject: [PATCH] fix #908 --- irc/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/accounts.go b/irc/accounts.go index 3edec142..a55945d4 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -1117,7 +1117,7 @@ func (am *AccountManager) Unregister(account string, erase bool) error { if erase { tx.Delete(unregisteredKey) } else { - if _, err := tx.Get(accountKey); err == nil { + if _, err := tx.Get(verifiedKey); err == nil { tx.Set(unregisteredKey, "1", nil) } }