Skip to content

Commit 9c42249

Browse files
authored
Merge pull request #53 from Madriix/patch-2
Update bouncer.js
2 parents cb6b2cf + d004c8d commit 9c42249

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bouncer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,8 @@ function clientConnect(socket) {
12541254
case '353':
12551255
_channel=data[4].toLowerCase().trim();
12561256
_names=lines[n].substr(1).split(" :")[1].trim().split(" ");
1257+
if (!this.channels[_channel])
1258+
break;
12571259
if(!this._getnames[_channel]) {
12581260
this._getnames[_channel]=true;
12591261
if(!this.channels[_channel]) {
@@ -1262,6 +1264,8 @@ function clientConnect(socket) {
12621264
this.channels[_channel].names=[];
12631265
}
12641266
for(x=0;x<_names.length;x++) {
1267+
if (!this.channels[_channel])
1268+
break;
12651269
this.channels[_channel].names.push(_names[x].trim().split("!")[0]);
12661270

12671271
if (typeof this.channels[_channel].userhosts === 'undefined')

0 commit comments

Comments
 (0)