From 3a78029809b508e2cd8cb70eac8975427be91dc9 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 26 Feb 2020 03:18:30 -0500 Subject: [PATCH] partial fix for #812 --- irc/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/accounts.go b/irc/accounts.go index e4517c80..4f7d4a5d 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -559,7 +559,7 @@ func (am *AccountManager) loadLastSignoff(account string) (lastSignoff time.Time return nil }) lsNum, err := strconv.ParseInt(lsText, 10, 64) - if err != nil { + if err == nil { return time.Unix(0, lsNum).UTC() } return