@@ -515,7 +515,7 @@ server = doServer(tlsOptions,function(socket) {
515
515
passwords = command [ 2 ] . split ( "," ) ;
516
516
l = 0 ;
517
517
for ( m = 0 ; m < channels . length ; m ++ ) {
518
- if ( typeof connections [ this . hash ] . channels !== 'undefined' && connections [ this . hash ] . channels [ channels [ m ] . trim ( ) . toUpperCase ( ) ] ) {
518
+ if ( typeof connections [ this . hash ] . channels !== 'undefined' && connections [ this . hash ] . channels [ channels [ m ] . trim ( ) . toLowerCase ( ) ] ) {
519
519
if ( command [ 2 ] && l < passwords . length )
520
520
l ++ ;
521
521
continue ;
@@ -952,7 +952,7 @@ function clientConnect(socket) {
952
952
_add = true ;
953
953
// walk thru modes
954
954
for ( i = 0 ; i < _mode . length ; i ++ ) {
955
- let curchan = this . channels [ _target . toUpperCase ( ) ] ;
955
+ let curchan = this . channels [ _target . toLowerCase ( ) ] ;
956
956
if ( _mode [ i ] == '+' )
957
957
_add = true ;
958
958
else if ( _mode [ i ] == '-' )
@@ -1127,7 +1127,7 @@ function clientConnect(socket) {
1127
1127
_channels = data [ _datatemp ] . substr ( 1 ) . trim ( ) . split ( "," ) ;
1128
1128
for ( x = 0 ; x < _channels . length ; x ++ ) {
1129
1129
_channel = _channels [ x ] ;
1130
- __channel = _channel . toUpperCase ( ) ;
1130
+ __channel = _channel . toLowerCase ( ) ;
1131
1131
if ( _nick == this . nick ) {
1132
1132
if ( ! this . channels [ __channel ] ) {
1133
1133
this . channels [ __channel ] = { } ;
@@ -1168,7 +1168,7 @@ function clientConnect(socket) {
1168
1168
}
1169
1169
break ;
1170
1170
case 'TOPIC' :
1171
- _target = data [ 2 ] . toUpperCase ( ) . trim ( ) ;
1171
+ _target = data [ 2 ] . toLowerCase ( ) . trim ( ) ;
1172
1172
_topic = lines [ n ] . substr ( lines [ n ] . substr ( 1 ) . indexOf ( ":" ) + 2 ) . trim ( ) ;
1173
1173
if ( this . channels [ _target ] ) {
1174
1174
this . channels [ _target ] . topic = _topic ;
@@ -1177,14 +1177,14 @@ function clientConnect(socket) {
1177
1177
}
1178
1178
break ;
1179
1179
case '332' :
1180
- _target = data [ 3 ] . toUpperCase ( ) . trim ( ) ;
1180
+ _target = data [ 3 ] . toLowerCase ( ) . trim ( ) ;
1181
1181
_topic = lines [ n ] . substr ( lines [ n ] . substr ( 1 ) . indexOf ( ":" ) + 2 ) . trim ( ) ;
1182
1182
if ( ! this . channels [ _target ] )
1183
1183
this . channels [ _target ] = { } ;
1184
1184
this . channels [ _target ] . topic = _topic ;
1185
1185
break ;
1186
1186
case '333' :
1187
- _channel = data [ 3 ] . toUpperCase ( ) . trim ( ) ;
1187
+ _channel = data [ 3 ] . toLowerCase ( ) . trim ( ) ;
1188
1188
_setter = data [ 4 ] . split ( "!" ) [ 0 ] . trim ( ) ;
1189
1189
_time = data [ 5 ] . trim ( ) ;
1190
1190
if ( ! this . channels [ _channel ] )
@@ -1194,7 +1194,7 @@ function clientConnect(socket) {
1194
1194
break ;
1195
1195
case 'KICK' :
1196
1196
_target = ( this . messagetags ? data [ 4 ] . trim ( ) : data [ 3 ] . trim ( ) ) ;
1197
- _channel = ( this . messagetags ? data [ 3 ] . toUpperCase ( ) . trim ( ) : data [ 2 ] . toUpperCase ( ) . trim ( ) ) ;
1197
+ _channel = ( this . messagetags ? data [ 3 ] . toLowerCase ( ) . trim ( ) : data [ 2 ] . toLowerCase ( ) . trim ( ) ) ;
1198
1198
if ( _target == this . nick ) {
1199
1199
delete this . channels [ _channel ] ;
1200
1200
}
@@ -1206,7 +1206,7 @@ function clientConnect(socket) {
1206
1206
}
1207
1207
break ;
1208
1208
case 'PART' :
1209
- _target = ( this . messagetags ? data [ 3 ] . toUpperCase ( ) . trim ( ) : data [ 2 ] . toUpperCase ( ) . trim ( ) ) ;
1209
+ _target = ( this . messagetags ? data [ 3 ] . toLowerCase ( ) . trim ( ) : data [ 2 ] . toLowerCase ( ) . trim ( ) ) ;
1210
1210
_sender = ( this . messagetags ? data [ 1 ] . substr ( 1 ) . split ( "!" ) [ 0 ] : data [ 0 ] . substr ( 1 ) . split ( "!" ) [ 0 ] ) ;
1211
1211
if ( _sender == this . nick ) {
1212
1212
delete this . channels [ _target ] ;
@@ -1234,7 +1234,7 @@ function clientConnect(socket) {
1234
1234
}
1235
1235
break ;
1236
1236
case '353' :
1237
- _channel = data [ 4 ] . toUpperCase ( ) . trim ( ) ;
1237
+ _channel = data [ 4 ] . toLowerCase ( ) . trim ( ) ;
1238
1238
_names = lines [ n ] . substr ( 1 ) . split ( " :" ) [ 1 ] . trim ( ) . split ( " " ) ;
1239
1239
if ( ! this . _getnames [ _channel ] ) {
1240
1240
this . _getnames [ _channel ] = true ;
@@ -1256,7 +1256,7 @@ function clientConnect(socket) {
1256
1256
}
1257
1257
break ;
1258
1258
case '366' :
1259
- _channel = data [ 3 ] . toUpperCase ( ) . trim ( ) ;
1259
+ _channel = data [ 3 ] . toLowerCase ( ) . trim ( ) ;
1260
1260
this . _getnames [ _channel ] = false ;
1261
1261
break ;
1262
1262
case 'NICK' :
0 commit comments