mirror of https://github.com/calzoneman/sync.git
Allow name banning guests
This commit is contained in:
parent
0537d0b202
commit
5393734055
|
@ -732,11 +732,13 @@ Channel.prototype.handleNameBan = function (actor, name, reason) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err && err !== "User does not exist") {
|
||||||
actor.socket.emit("errorMsg", {
|
actor.socket.emit("errorMsg", {
|
||||||
msg: "Internal error: " + err
|
msg: "Internal error: " + err
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
} else if (err === "User does not exist") {
|
||||||
|
rank = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rank >= actor.rank) {
|
if (rank >= actor.rank) {
|
||||||
|
|
Loading…
Reference in New Issue