Allow name banning guests

This commit is contained in:
calzoneman 2014-03-05 17:49:49 -06:00
parent 0537d0b202
commit 5393734055
1 changed files with 3 additions and 1 deletions

View File

@ -732,11 +732,13 @@ Channel.prototype.handleNameBan = function (actor, name, reason) {
return;
}
if (err) {
if (err && err !== "User does not exist") {
actor.socket.emit("errorMsg", {
msg: "Internal error: " + err
});
return;
} else if (err === "User does not exist") {
rank = 0;
}
if (rank >= actor.rank) {