Skip to content

Commit 14e5b4a

Browse files
authored
a crash
Cause this crash as soon as you enter a channel and / or leave immediately (less than a second later) Error: > :irc.s.com 354 Tetelle #35-45ans irclog logs-canaux.s.com irc.s.com Botlog HrsB 0 Botlog n/a :20/H/FR > :irc.s.com 315 Tetelle #35-45ans :End of /WHO list. > :irc.s.com 353 Miky = #15-25ans : /home/mima/node/jbnc/bouncer.js:1197 this.channels[_channel].userhosts.push("*@*"); ^ TypeError: Cannot read property 'push' of undefined at TLSSocket.<anonymous> (/home/mima/node/jbnc/bouncer.js:1197:55)
1 parent ffc3c8c commit 14e5b4a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bouncer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,6 @@ function clientConnect(socket) {
11331133
this.channels[_channel].names.push(_names[x].trim().split("!")[0]);
11341134
if(_names[x].trim().indexOf("!")>=0)
11351135
this.channels[_channel].userhosts.push(_names[x].trim().split("!")[1]);
1136-
else
1137-
this.channels[_channel].userhosts.push("*@*");
11381136
}
11391137
break;
11401138
case '366':

0 commit comments

Comments
 (0)