mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
Kick/Mute immunity should only be if globalRank is strictly greater
This commit is contained in:
parent
ef7ee067f2
commit
032f600746
@ -483,7 +483,7 @@ ChatModule.prototype.handleCmdMute = function (user, msg, meta) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (target.account.effectiveRank >= user.account.effectiveRank
|
if (target.account.effectiveRank >= user.account.effectiveRank
|
||||||
|| target.account.globalRank >= user.account.globalRank) {
|
|| target.account.globalRank > user.account.globalRank) {
|
||||||
user.socket.emit("errorMsg", {
|
user.socket.emit("errorMsg", {
|
||||||
msg: "/mute failed - " + target.getName() + " has equal or higher rank " +
|
msg: "/mute failed - " + target.getName() + " has equal or higher rank " +
|
||||||
"than you."
|
"than you."
|
||||||
|
@ -176,7 +176,7 @@ KickBanModule.prototype.handleCmdKick = function (user, msg, meta) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (target.account.effectiveRank >= user.account.effectiveRank
|
if (target.account.effectiveRank >= user.account.effectiveRank
|
||||||
|| target.account.globalRank >= user.account.globalRank) {
|
|| target.account.globalRank > user.account.globalRank) {
|
||||||
return user.socket.emit("errorMsg", {
|
return user.socket.emit("errorMsg", {
|
||||||
msg: "You do not have permission to kick " + target.getName()
|
msg: "You do not have permission to kick " + target.getName()
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user