Skip to content

Commit 30f5bc1

Browse files
authored
Errror after the 22nd day : try to solve
TypeError: Cannot read property 'push' of undefined at TLSSocket.<anonymous> (/home/debian/node/jbnc/bouncer.js:1142:55) at TLSSocket.emit (events.js:315:20) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:271:9) at TLSSocket.Readable.push (_stream_readable.js:212:10) at TLSWrap.onStreamRead (internal/stream_base_commons.js:186:23) Maybe the raw 353 continues to play even though the user has left the channel or is logged out
1 parent 1b832cf commit 30f5bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bouncer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ function clientConnect(socket) {
11391139
}
11401140
for(x=0;x<_names.length;x++) {
11411141
this.channels[_channel].names.push(_names[x].trim().split("!")[0]);
1142-
if(_names[x].trim().indexOf("!")>=0)
1142+
if(typeof this.channels[_channel].userhosts !== 'undefined' && _names[x].trim().indexOf("!")>=0)
11431143
this.channels[_channel].userhosts.push(_names[x].trim().split("!")[1]);
11441144
}
11451145
break;

0 commit comments

Comments
 (0)