logout when session expired
This commit is contained in:
parent
8104db9562
commit
98e3f1669c
|
@ -277,9 +277,10 @@ func (handler *CommandHandler) CommandLogout(ce *CommandEvent) {
|
|||
Chats: make(map[string]skype.Conversation),
|
||||
}
|
||||
ce.Reply("Logged out successfully.")
|
||||
leavePortals(ce)
|
||||
if ce.User.Conn.Refresh != nil {
|
||||
ce.User.Conn.Refresh <- -1
|
||||
} else {
|
||||
leavePortals(ce)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue