Fix NICK

parent 2d1b534d
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment