Kick/Mute immunity should only be if globalRank is strictly greater

This commit is contained in:
Calvin Montgomery 2015-01-08 08:48:00 -05:00
parent ef7ee067f2
commit 032f600746
2 changed files with 2 additions and 2 deletions

View File

@ -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."

View File

@ -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()
});