From f80f32182d9dee63e14fd68ff7230450767c3ec1 Mon Sep 17 00:00:00 2001 From: Haw Loeung Date: Sat, 3 Apr 2021 07:08:06 +1100 Subject: [PATCH] Update mm-go-irckit/userbridge.go Co-authored-by: Wim --- mm-go-irckit/userbridge.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm-go-irckit/userbridge.go b/mm-go-irckit/userbridge.go index c9b71509..3f0a7123 100644 --- a/mm-go-irckit/userbridge.go +++ b/mm-go-irckit/userbridge.go @@ -839,8 +839,7 @@ func (u *User) logoutFrom(protocol string) error { logger.Debug("logging out from", protocol) u.Srv.Logout(u) - statePath := u.v.GetString(u.br.Protocol() + ".lastviewedsavefile") - if statePath != "" { + if statePath := u.v.GetString(u.br.Protocol() + ".lastviewedsavefile");statePath != "" { saveLastViewedAtStateFile(statePath, u.lastViewedAt) } return nil