Skip to content

Commit e8dfbab

Browse files
committed
Update bouncer.js
1 parent 8968051 commit e8dfbab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bouncer.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ function clientConnect(socket) {
909909

910910
}
911911
else if(this.sasl && data[3] && data[3]=='ACK') {
912-
this.write("AUTHENTICATE :PLAIN\n");
912+
this.write("AUTHENTICATE PLAIN\n");
913913
}
914914
else {
915915
if (!this.sasl)
@@ -935,7 +935,7 @@ function clientConnect(socket) {
935935
}
936936

937937
if (b64.length === sliceOffset)
938-
this.write('AUTHENTICATE :+\n');
938+
this.write('AUTHENTICATE +\n');
939939

940940
continue;
941941
}
@@ -954,6 +954,10 @@ function clientConnect(socket) {
954954
this.write("CAP END\n");
955955
}
956956
}
957+
958+
if(data[1]=="901") {
959+
this.account = '';
960+
}
957961

958962
if(data[1]=="900") {
959963
this.account = data[4];
@@ -968,7 +972,7 @@ function clientConnect(socket) {
968972
case '001':
969973
if(!this.authenticated) {
970974
this.authenticated=true;
971-
this.name_original=data[2];
975+
this.nick_original=data[2];
972976
if(lines[n].lastIndexOf("@")>0) {
973977
this.ircuser=lines[n].substr(lines[n].lastIndexOf("!")+1,lines[n].lastIndexOf("@")-lines[n].lastIndexOf("!")-1);
974978
this.host=lines[n].substr(lines[n].lastIndexOf("@")+1).trim();

0 commit comments

Comments
 (0)