A few small fixes

This commit is contained in:
calzoneman 2014-01-20 11:59:53 -06:00
parent ed12dd76fd
commit f7932166b2
3 changed files with 12 additions and 0 deletions

View file

@ -22,6 +22,9 @@ module.exports = function (Server) {
if((Server.cfg["trust-x-forward"] || raw === "127.0.0.1") && forward) {
var ip = forward.split(",")[0];
Logger.syslog.log("REVPROXY " + raw + " => " + ip);
if (ip === undefined) {
Logger.errlog.log("WTF: ip is undefined from getIP, forward=" + forward);
}
return ip;
}
return raw;

View file

@ -891,6 +891,12 @@ Channel.prototype.userJoin = function(user, password) {
self.kick(u, "Duplicate login");
}
});
// It's possible that by kicking the user above, the channel usercount became
// 0 and it unloaded from memory
if (this.dead) {
return;
}
}
this.users.push(user);

View file

@ -758,6 +758,9 @@ function VimeoIsADoucheCopter(id, cb) {
});
}
return;
} else if (data.indexOf("This video does not exist.") !== -1) {
cb({});
return;
}
Logger.errlog.log("Vimeo workaround error: ");
Logger.errlog.log(e);