lib/client: use Client.isMyNick to handle self-NICK messages

This handles case-mapping.
This commit is contained in:
Simon Ser 2021-11-03 21:50:08 +01:00
parent a1ab87c71c
commit eb66045371

View File

@ -310,7 +310,7 @@ export default class Client extends EventTarget {
break; break;
case "NICK": case "NICK":
let newNick = msg.params[0]; let newNick = msg.params[0];
if (msg.prefix.name == this.nick) { if (this.isMyNick(msg.prefix.name)) {
this.nick = newNick; this.nick = newNick;
} }
break; break;