File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ function clientConnect(socket) {
805
805
}
806
806
807
807
if ( true ) {
808
- for ( let n = 0 ; n < lines . length ; n ++ ) {
808
+ for ( n = 0 ; n < lines . length ; n ++ ) {
809
809
if ( DEBUG )
810
810
console . log ( "> " + lines [ n ] ) ;
811
811
data = lines [ n ] . trim ( ) . split ( " " ) ;
@@ -1207,10 +1207,14 @@ function clientConnect(socket) {
1207
1207
}
1208
1208
for ( x = 0 ; x < _names . length ; x ++ ) {
1209
1209
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 )
1211
1215
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("*@*"); */
1214
1218
}
1215
1219
break ;
1216
1220
case '366' :
You can’t perform that action at this time.
0 commit comments