@@ -1018,7 +1018,7 @@ function clientConnect(socket) {
1018
1018
}
1019
1019
else
1020
1020
curchan . names [ c ] = curchan . names [ c ] . substr ( 0 , 1 ) + "%" + curchan . names [ c ] . substr ( 1 ) ;
1021
- if ( _mode_target [ _mode_count ] != this . nick && curchan . aoh . indexOf ( _this_target ) < 0 && this . opmode ) {
1021
+ if ( _mode_target [ _mode_count ] != this . nick && curchan . aoh && curchan . aoh . indexOf ( _this_target ) < 0 && this . opmode ) {
1022
1022
curchan . aoh . push ( _mode_target [ _this_target ] ) ;
1023
1023
}
1024
1024
}
@@ -1062,23 +1062,23 @@ function clientConnect(socket) {
1062
1062
case 'o' :
1063
1063
_this_target = _mode_target [ _mode_count ] + "!" + ( curchan . userhosts [ c ] ?curchan . userhosts [ c ] :"*@*" ) ;
1064
1064
curchan . names [ c ] = curchan . names [ c ] . replace ( "@" , "" ) ;
1065
- if ( _mode_target [ _mode_count ] != this . nick && curchan . aop . indexOf ( _this_target ) >= 0 && this . opmode ) {
1065
+ if ( _mode_target [ _mode_count ] != this . nick && curchan . aop && curchan . aop . indexOf ( _this_target ) >= 0 && this . opmode ) {
1066
1066
curchan . aop . splice ( curchan . aop . indexOf ( _this_target ) , 1 ) ;
1067
1067
}
1068
1068
if ( _mode_target [ _mode_count ] == this . nick ) this . isop = false ;
1069
1069
break ;
1070
1070
case 'v' :
1071
1071
_this_target = _mode_target [ _mode_count ] + "!" + ( curchan . userhosts [ c ] ?curchan . userhosts [ c ] :"*@*" ) ;
1072
1072
curchan . names [ c ] = curchan . names [ c ] . replace ( "+" , "" ) ;
1073
- if ( _mode_target [ _mode_count ] != this . nick && curchan . aov . indexOf ( _this_target ) >= 0 && this . opmode ) {
1073
+ if ( _mode_target [ _mode_count ] != this . nick && curchan . aov && curchan . aov . indexOf ( _this_target ) >= 0 && this . opmode ) {
1074
1074
curchan . aov . splice ( curchan . aov . indexOf ( _this_target ) , 1 ) ;
1075
1075
}
1076
1076
if ( _mode_target [ _mode_count ] == this . nick ) this . isvoice = false ;
1077
1077
break ;
1078
1078
case 'h' :
1079
1079
_this_target = _mode_target [ _mode_count ] + "!" + ( curchan . userhosts [ c ] ?curchan . userhosts [ c ] :"*@*" ) ;
1080
1080
curchan . names [ c ] = curchan . names [ c ] . replace ( "%" , "" ) ;
1081
- if ( _mode_target [ _mode_count ] != this . nick && curchan . aoh . indexOf ( _this_target ) >= 0 && this . opmode ) {
1081
+ if ( _mode_target [ _mode_count ] != this . nick && curchan . aoh && curchan . aoh . indexOf ( _this_target ) >= 0 && this . opmode ) {
1082
1082
curchan . aoh . splice ( curchan . aoh . indexOf ( _this_target ) , 1 ) ;
1083
1083
}
1084
1084
if ( _mode_target [ _mode_count ] == this . nick ) this . ishop = false ;
0 commit comments