mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
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;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user