From e7c1800893c7d25dc8c0ba174d042aabdaabc04a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 2 Mar 2020 01:54:40 -0500 Subject: [PATCH] fix a spurious error logline unregistering an always-on client would produce "attempting to persist logged-out client : x" because the client was always-on, but also being ejected --- irc/accounts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/accounts.go b/irc/accounts.go index b9082083..63371d6f 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -1152,6 +1152,7 @@ func (am *AccountManager) Unregister(account string) error { } for _, client := range clients { if config.Accounts.RequireSasl.Enabled { + client.Logout() client.Quit(client.t("You are no longer authorized to be on this server"), nil) // destroy acquires a semaphore so we can't call it while holding a lock go client.destroy(nil)