This commit is contained in:
Evert Prants 2020-02-08 13:04:05 +02:00
parent 2d1b534d16
commit 4067ea31e0
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 3 additions and 2 deletions

View File

@ -458,12 +458,13 @@ class IRCConnectionHandler {
}
break
case 'NICK':
let newNickA = line.arguments[0] || line.trailing
if (line.user.nickname === this.conn.config.nickname) {
this.conn.config.nickname = line.arguments[0]
this.conn.config.nickname = newNickA
}
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
case 'KICK':