Fix delete-session not deleting all cached state

This commit is contained in:
Tulir Asokan
2020-10-04 13:55:09 +03:00
parent 1379e46e1e
commit f21f57f09f
2 changed files with 5 additions and 1 deletions

View File

@@ -458,6 +458,7 @@ func (handler *CommandHandler) CommandDeleteSession(ce *CommandEvent) {
ce.Reply("Nothing to purge: no session information stored and no active connection.")
return
}
ce.User.removeFromJIDMap()
ce.User.SetSession(nil)
if ce.User.Conn != nil {
_, _ = ce.User.Conn.Disconnect()