File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -909,7 +909,7 @@ function clientConnect(socket) {
909
909
910
910
}
911
911
else if ( this . sasl && data [ 3 ] && data [ 3 ] == 'ACK' ) {
912
- this . write ( "AUTHENTICATE : PLAIN\n" ) ;
912
+ this . write ( "AUTHENTICATE PLAIN\n" ) ;
913
913
}
914
914
else {
915
915
if ( ! this . sasl )
@@ -935,7 +935,7 @@ function clientConnect(socket) {
935
935
}
936
936
937
937
if ( b64 . length === sliceOffset )
938
- this . write ( 'AUTHENTICATE : +\n' ) ;
938
+ this . write ( 'AUTHENTICATE +\n' ) ;
939
939
940
940
continue ;
941
941
}
@@ -954,6 +954,10 @@ function clientConnect(socket) {
954
954
this . write ( "CAP END\n" ) ;
955
955
}
956
956
}
957
+
958
+ if ( data [ 1 ] == "901" ) {
959
+ this . account = '' ;
960
+ }
957
961
958
962
if ( data [ 1 ] == "900" ) {
959
963
this . account = data [ 4 ] ;
@@ -968,7 +972,7 @@ function clientConnect(socket) {
968
972
case '001' :
969
973
if ( ! this . authenticated ) {
970
974
this . authenticated = true ;
971
- this . name_original = data [ 2 ] ;
975
+ this . nick_original = data [ 2 ] ;
972
976
if ( lines [ n ] . lastIndexOf ( "@" ) > 0 ) {
973
977
this . ircuser = lines [ n ] . substr ( lines [ n ] . lastIndexOf ( "!" ) + 1 , lines [ n ] . lastIndexOf ( "@" ) - lines [ n ] . lastIndexOf ( "!" ) - 1 ) ;
974
978
this . host = lines [ n ] . substr ( lines [ n ] . lastIndexOf ( "@" ) + 1 ) . trim ( ) ;
You can’t perform that action at this time.
0 commit comments