This commit is contained in:
zefie
2025-06-22 18:59:55 -04:00
parent bffc32e0ee
commit 238b34f8bf

View File

@@ -416,7 +416,7 @@ class WTVIRC {
socket.uniqueId = serverId; socket.uniqueId = serverId;
socket.serverIdent = line; socket.serverIdent = line;
this.servers.set(socket, serverName) this.servers.set(socket, serverName)
this.safeWriteToSocket(socket, `SERVER ${serverName} 1 ${serverId} + :${this.server_hello}\r\n`); this.safeWriteToSocket(socket, `SERVER ${this.servername} 1 ${this.serverId} + :${this.server_hello}\r\n`);
for (const [sock, nickname] of this.nicknames.entries()) { for (const [sock, nickname] of this.nicknames.entries()) {
if (!sock || !nickname) continue; if (!sock || !nickname) continue;
const uniqueId = sock.uniqueId; const uniqueId = sock.uniqueId;