Skip to content

Commit c42f7e3

Browse files
committed
Update
1 parent 38ea07c commit c42f7e3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

bouncer.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ function clientConnect(socket) {
805805
}
806806

807807
if (true) {
808-
for(let n=0;n<lines.length;n++) {
808+
for(n=0;n<lines.length;n++) {
809809
if(DEBUG)
810810
console.log("> "+lines[n]);
811811
data = lines[n].trim().split(" ");
@@ -1207,10 +1207,14 @@ function clientConnect(socket) {
12071207
}
12081208
for(x=0;x<_names.length;x++) {
12091209
this.channels[_channel].names.push(_names[x].trim().split("!")[0]);
1210-
if(typeof this.channels[_channel].userhosts !== 'undefined' && _names[x].trim().indexOf("!")>=0)
1210+
1211+
if (typeof this.channels[_channel].userhosts === 'undefined')
1212+
this.channels[_channel].userhosts=[];
1213+
1214+
if(_names[x].trim().indexOf("!")>=0)
12111215
this.channels[_channel].userhosts.push(_names[x].trim().split("!")[1]);
1212-
/*else
1213-
this.channels[_channel].userhosts.push("*@*"); */
1216+
/*else
1217+
this.channels[_channel].userhosts.push("*@*"); */
12141218
}
12151219
break;
12161220
case '366':

0 commit comments

Comments
 (0)