From 305f510501d42e63cb2a69089763f66e0a6df415 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 6 Dec 2021 17:55:47 +0100 Subject: [PATCH] Read nickname from RPL_WELCOME References: https://github.com/ircdocs/modern-irc/pull/146 --- lib/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client.js b/lib/client.js index 9f53752..2ec1b9f 100644 --- a/lib/client.js +++ b/lib/client.js @@ -272,6 +272,7 @@ export default class Client extends EventTarget { if (msg.prefix) { this.serverPrefix = msg.prefix; } + this.nick = msg.params[0]; console.log("Registration complete"); this.setStatus(Client.Status.REGISTERED);