Fix what I assume was a race condition
This commit is contained in:
parent
6aae146f8b
commit
d5c5de41e1
2 changed files with 5 additions and 1 deletions
|
|
@ -654,7 +654,7 @@ User.prototype.login = function(name, pw, session) {
|
|||
});
|
||||
return;
|
||||
}
|
||||
if(self.channel != null) {
|
||||
if(self.channel !== null && !self.channel.dead) {
|
||||
for(var i = 0; i < self.channel.users.length; i++) {
|
||||
if(self.channel.users[i].name.toLowerCase() == name.toLowerCase()) {
|
||||
if (self.channel.users[i] == self) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue