maybe fix null

This commit is contained in:
zefie
2025-06-17 13:21:54 -04:00
parent 08f528fe4b
commit e9d712f344

View File

@@ -535,7 +535,9 @@ class WTVIRC {
if (!this.channels.get(channel).has(nickname)) {
this.channels.get(channel).add(nickname);
}
this.broadcastChannel(channel, `:${nickname}!${username}@${hostname} JOIN ${channel}\r\n`, userSocket);
if (nickname && username && hostname) {
this.broadcastChannel(channel, `:${nickname}!${username}@${hostname} JOIN ${channel}\r\n`, userSocket);
}
this.broadcastToAllServers(`:${socket.servername} SJOIN ${this.getDate()} ${channel} +${modes} :${uniqueId}\r\n`, socket);
break;
case 'SQUIT':