fix kicking user.
This commit is contained in:
@ -84,6 +84,11 @@ export class NekoClient extends BaseClient implements EventEmitter<NekoEvents> {
|
||||
|
||||
protected [EVENT.DISCONNECTED](reason?: Error) {
|
||||
this.cleanup()
|
||||
|
||||
if (reason && reason.message == 'kicked') {
|
||||
this.$accessor.logout()
|
||||
}
|
||||
|
||||
this.$vue.$notify({
|
||||
group: 'neko',
|
||||
type: 'error',
|
||||
|
Reference in New Issue
Block a user