File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -914,30 +914,33 @@ function clientConnect(socket) {
914
914
case '324' :
915
915
case 'MODE' :
916
916
_mode_target = [ ] ;
917
+ // <- :irc.jbnc.com 324 spawn #lu +CPTVnrst
917
918
if ( data [ 1 ] == '324' ) {
918
919
_target = data [ 3 ] . trim ( ) ;
919
920
_sender = data [ 0 ] . substr ( 1 ) . split ( "!" ) [ 0 ] ;
920
921
_mode = data [ 4 ] . trim ( ) ;
921
922
if ( data [ 5 ] )
922
923
_mode_target = data . slice ( 5 , data . length ) ;
923
924
}
925
+ // <- @time=2020-09-16T22:25:40.594Z :spawn!spawn@chanroot/b3Az MODE #lu +m
924
926
else if ( this . messagetags && data [ 2 ] == 'MODE' ) {
925
927
_target = data [ 3 ] . trim ( ) ;
926
928
_sender = data [ 1 ] . substr ( 1 ) . split ( "!" ) [ 0 ] ;
927
929
_mode = data [ 4 ] . trim ( ) ;
928
930
if ( data [ 5 ] )
929
931
_mode_target = data . slice ( 5 , data . length ) ;
930
- }
931
- else if ( ! this . messagetags ) {
932
+ }
933
+ // :spawn!spawn@chanroot/b3Az MODE #lu +m
934
+ else if ( ! this . messagetags && data [ 1 ] == 'MODE' ) {
932
935
_target = data [ 2 ] . trim ( ) ;
933
936
_sender = data [ 0 ] . substr ( 1 ) . split ( "!" ) [ 0 ] ;
934
937
_mode = data [ 3 ] . trim ( ) ;
935
938
if ( data [ 4 ] )
936
939
_mode_target = data . slice ( 4 , data . length ) ;
937
- }
940
+ }
938
941
else {
939
942
_target = data [ 2 ] . trim ( ) ;
940
- _sender = data [ 2 ] ;
943
+ _sender = data [ 0 ] . substr ( 1 ) . split ( "!" ) [ 0 ] ;
941
944
_mode = data [ 3 ] . trim ( ) ;
942
945
if ( data [ 4 ] )
943
946
_mode_target = data . slice ( 4 , data . length ) ;
You can’t perform that action at this time.
0 commit comments