File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -959,7 +959,7 @@ function clientConnect(socket) {
959
959
_add = false ;
960
960
else {
961
961
if ( _add ) {
962
- if ( _sender == _target && _target == this . nick ) {
962
+ if ( _sender == _target && _target == this . nick || _sender == "NickServ" && _target == this . nick || _sender == "OperServ" && _target == this . nick ) {
963
963
if ( this . umode != null && this . umode . indexOf ( _mode [ i ] ) == - 1 ) {
964
964
this . umode += _mode [ i ] ;
965
965
}
@@ -1048,7 +1048,7 @@ function clientConnect(socket) {
1048
1048
}
1049
1049
else {
1050
1050
_regex = new RegExp ( _mode [ i ] , "g" )
1051
- if ( _sender == _target && _target == this . nick )
1051
+ if ( _sender == _target && _target == this . nick || _sender == "NickServ" && _target == this . nick || _sender == "OperServ" && _target == this . nick )
1052
1052
this . umode = this . umode . replace ( _regex , "" ) ;
1053
1053
else if ( curchan != null && ( _mode [ i ] != 'o' && _mode [ i ] != 'v' && _mode [ i ] != 'h' ) )
1054
1054
curchan . modes = curchan . modes . replace ( _regex , "" ) ;
You can’t perform that action at this time.
0 commit comments