@@ -29,7 +29,7 @@ var BOUNCER_DEFAULT_OPMODE = config.bouncerDefaultOpmode?config.bouncerDefaultOp
29
29
const BOUNCER_MODE = config . mode ?config . mode :'bouncer' ;
30
30
const BOUNCER_TIMEOUT = config . bouncerTimeout ?config . bouncerTimeout :0 ;
31
31
const BUFFER_MAXSIZE = config . bufferMaxSize ?config . bufferMaxSize :52428800 ;
32
- const BUFFER_LINEMAX = config . lineMax ?config . lineMax :1500 ;
32
+ const BUFFER_LINEMAX = config . lineMax ?config . lineMax :1500 ;
33
33
const BOUNCER_SHACK = config . bouncerShack ?config . bouncerShack :10 ;
34
34
const SERVER_WEBIRC = config . webircPassword ?config . webircPassword :'' ;
35
35
const SERVER_WEBIRCHASHIP = config . webircHashIp ?true :false ;
@@ -979,7 +979,7 @@ function clientConnect(socket) {
979
979
_this_target = _mode_target [ _mode_count ] + "!" + ( curchan . userhosts [ c ] ?curchan . userhosts [ c ] :"*@*" ) ;
980
980
if ( curchan . names [ c ] . indexOf ( "@" ) == - 1 ) {
981
981
curchan . names [ c ] = "@" + curchan . names [ c ] ;
982
- if ( _mode_target [ _mode_count ] != this . nick && curchan . aop . indexOf ( _this_target ) < 0 && this . opmode ) {
982
+ if ( _mode_target [ _mode_count ] != this . nick && curchan . aop && curchan . aop . indexOf ( _this_target ) < 0 && this . opmode ) {
983
983
curchan . aop . push ( _this_target ) ;
984
984
}
985
985
}
@@ -1004,7 +1004,7 @@ function clientConnect(socket) {
1004
1004
curchan . names [ c ] = curchan . names [ c ] . substr ( 0 , 2 ) + "+" + curchan . names [ c ] . substr ( 2 ) ;
1005
1005
}
1006
1006
}
1007
- if ( _mode_target [ _mode_count ] != this . nick && curchan . aov . indexOf ( _this_target ) < 0 && this . opmode ) {
1007
+ if ( _mode_target [ _mode_count ] != this . nick && curchan . aov && curchan . aov . indexOf ( _this_target ) < 0 && this . opmode ) {
1008
1008
curchan . aov . push ( _mode_target [ _this_target ] ) ;
1009
1009
}
1010
1010
}
0 commit comments