order of operations 2

This commit is contained in:
zefie
2025-06-23 09:07:30 -04:00
parent 4a27393304
commit fefea8efad

View File

@@ -4396,7 +4396,6 @@ class WTVIRC {
} }
output_lines.push(`:${this.servername} 221 ${nickname} :+${this.usermodes.get(nickname).join('')}\r\n`); output_lines.push(`:${this.servername} 221 ${nickname} :+${this.usermodes.get(nickname).join('')}\r\n`);
await this.sendThrottled(socket, output_lines); await this.sendThrottled(socket, output_lines);
await this.broadcastConnection(socket);
for (const [srvSocket, serverName] of this.servers.entries()) { for (const [srvSocket, serverName] of this.servers.entries()) {
if (srvSocket) { if (srvSocket) {
// Compose UID message for this client // Compose UID message for this client
@@ -4409,6 +4408,7 @@ class WTVIRC {
await this.safeWriteToSocket(srvSocket, `:${this.serverId} UID ${nickname} 1 ${signonTime} +${userModes} ${username} ${socket.host} ${socket.realhost} ${socket.remoteAddress} ${uniqueId} * ${nickname} :${userinfo}\r\n`); await this.safeWriteToSocket(srvSocket, `:${this.serverId} UID ${nickname} 1 ${signonTime} +${userModes} ${username} ${socket.host} ${socket.realhost} ${socket.remoteAddress} ${uniqueId} * ${nickname} :${userinfo}\r\n`);
} }
} }
await this.broadcastConnection(socket);
} }
} }