mirror of https://github.com/calzoneman/sync.git
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
|
||||
|| target.account.globalRank >= user.account.globalRank) {
|
||||
|| target.account.globalRank > user.account.globalRank) {
|
||||
user.socket.emit("errorMsg", {
|
||||
msg: "/mute failed - " + target.getName() + " has equal or higher rank " +
|
||||
"than you."
|
||||
|
|
|
@ -176,7 +176,7 @@ KickBanModule.prototype.handleCmdKick = function (user, msg, meta) {
|
|||
}
|
||||
|
||||
if (target.account.effectiveRank >= user.account.effectiveRank
|
||||
|| target.account.globalRank >= user.account.globalRank) {
|
||||
|| target.account.globalRank > user.account.globalRank) {
|
||||
return user.socket.emit("errorMsg", {
|
||||
msg: "You do not have permission to kick " + target.getName()
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue