Skip to content

Commit c590062

Browse files
authored
Update bouncer.js
1 parent 364939e commit c590062

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bouncer.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ server = doServer(tlsOptions,function(socket) {
133133
for(i=0;i<input.length;i++) {
134134
if(DEBUG)
135135
console.log("<" +input[i]);
136-
137-
if ( typeof connections[this.hash] === 'undefined' )
138-
continue;
139-
140136
let commands=input[i].split(" ");
141137
let command=commands[0].toUpperCase();
142138
if(!this.connected && !this.badauth) {
@@ -483,6 +479,8 @@ server = doServer(tlsOptions,function(socket) {
483479
}
484480
break;
485481
default:
482+
if(typeof connections[this.hash] === 'undefined' )
483+
continue;
486484
// supress joins of channels we are already in because some clients dont react properly.
487485
if(input[i].toString().substr(0,4)=="JOIN") {
488486
command=input[i].toString().trim().split(" ");

0 commit comments

Comments
 (0)