maybe fix null
This commit is contained in:
@@ -535,7 +535,9 @@ class WTVIRC {
|
|||||||
if (!this.channels.get(channel).has(nickname)) {
|
if (!this.channels.get(channel).has(nickname)) {
|
||||||
this.channels.get(channel).add(nickname);
|
this.channels.get(channel).add(nickname);
|
||||||
}
|
}
|
||||||
|
if (nickname && username && hostname) {
|
||||||
this.broadcastChannel(channel, `:${nickname}!${username}@${hostname} JOIN ${channel}\r\n`, userSocket);
|
this.broadcastChannel(channel, `:${nickname}!${username}@${hostname} JOIN ${channel}\r\n`, userSocket);
|
||||||
|
}
|
||||||
this.broadcastToAllServers(`:${socket.servername} SJOIN ${this.getDate()} ${channel} +${modes} :${uniqueId}\r\n`, socket);
|
this.broadcastToAllServers(`:${socket.servername} SJOIN ${this.getDate()} ${channel} +${modes} :${uniqueId}\r\n`, socket);
|
||||||
break;
|
break;
|
||||||
case 'SQUIT':
|
case 'SQUIT':
|
||||||
|
|||||||
Reference in New Issue
Block a user