Fix NICK
This commit is contained in:
parent
2d1b534d16
commit
4067ea31e0
@ -458,12 +458,13 @@ class IRCConnectionHandler {
|
|||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'NICK':
|
case 'NICK':
|
||||||
|
let newNickA = line.arguments[0] || line.trailing
|
||||||
if (line.user.nickname === this.conn.config.nickname) {
|
if (line.user.nickname === this.conn.config.nickname) {
|
||||||
this.conn.config.nickname = line.arguments[0]
|
this.conn.config.nickname = newNickA
|
||||||
}
|
}
|
||||||
|
|
||||||
this.conn.emit('fromServer', {
|
this.conn.emit('fromServer', {
|
||||||
type: 'nick', nick: line.user.nickname, newNick: line.arguments[0], server: serverName
|
type: 'nick', nick: line.user.nickname, newNick: newNickA, server: serverName
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
case 'KICK':
|
case 'KICK':
|
||||||
|
Reference in New Issue
Block a user