From 032f600746981fb247a907240f05df7bca163345 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 8 Jan 2015 08:48:00 -0500 Subject: [PATCH] Kick/Mute immunity should only be if globalRank is strictly greater --- lib/channel/chat.js | 2 +- lib/channel/kickban.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/channel/chat.js b/lib/channel/chat.js index 1e23debd..9d2d9a0a 100644 --- a/lib/channel/chat.js +++ b/lib/channel/chat.js @@ -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." diff --git a/lib/channel/kickban.js b/lib/channel/kickban.js index 9190b68d..4d83e01e 100644 --- a/lib/channel/kickban.js +++ b/lib/channel/kickban.js @@ -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() });