File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -770,11 +770,15 @@ class ClientConnect {
770
770
continue ;
771
771
}
772
772
if ( data [ 0 ] == "ERROR" ) {
773
- if ( this . client . gone ) {
773
+ /* if (this.client.gone) {
774
774
clearTimeout(this.client.gone);
775
775
this.client.gone = '';
776
776
this.client.goneTime = '';
777
- }
777
+ }*/
778
+ try {
779
+ this . connections [ this . client . hash ] . end ( ) ;
780
+ } catch ( e ) { }
781
+ delete this . connections [ this . client . hash ] ;
778
782
}
779
783
if ( lines [ n ] . length > 1 ) {
780
784
for ( let m = 0 ; m < this . client . parents . length ; m ++ ) {
@@ -850,6 +854,9 @@ class ClientConnect {
850
854
}
851
855
}
852
856
else if ( lines [ n ] . split ( " " ) [ 2 ] && global . ircCommandRedistributeMessagesOnConnect . has ( lines [ n ] . split ( " " ) [ 2 ] . trimEnd ( ) ) ) {
857
+ if ( lines [ n ] . split ( " " ) [ 1 ] . substr ( 1 ) . split ( "!" ) [ 0 ] == this . client . nick ) {
858
+ continue ;
859
+ }
853
860
for ( let key in this . client . buffers ) {
854
861
if ( Object . prototype . hasOwnProperty . call ( this . client . buffers , key ) ) {
855
862
let _n = "server.irc" ;
You can’t perform that action at this time.
0 commit comments