Fix logout command

This commit is contained in:
Otto Hollmann 2022-05-02 20:49:33 +02:00
parent 4d5e43a039
commit cf358a572c
No known key found for this signature in database
GPG Key ID: 101D022F467ECE22
3 changed files with 1 additions and 1 deletions

View File

@ -278,6 +278,7 @@ func (handler *CommandHandler) CommandLogout(ce *CommandEvent) {
} }
} }
ce.Reply("Logged out successfully.") ce.Reply("Logged out successfully.")
ce.User.Conn.LoginInfo = nil
if ce.User.Conn.Refresh != nil { if ce.User.Conn.Refresh != nil {
ce.User.Conn.Refresh <- -1 ce.User.Conn.Refresh <- -1
} else { } else {

View File

@ -432,7 +432,6 @@ func (user *User) monitorSession(ce *CommandEvent) {
leavePortals(ce) leavePortals(ce)
} }
} else { } else {
ce.Reply("Session expired\nStore your password into database with command `save-password` to resolve this issue.")
close(user.Conn.Refresh) close(user.Conn.Refresh)
leavePortals(ce) leavePortals(ce)
} }