forked from CringeStudios/gamja
lib/client: use Client.isMyNick to handle self-NICK messages
This handles case-mapping.
This commit is contained in:
parent
a1ab87c71c
commit
eb66045371
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user