From 6f8bde91e1fdf304e4242fcff784895671df9ec8 Mon Sep 17 00:00:00 2001 From: deerfarce <7387712+deerfarce@users.noreply.github.com> Date: Tue, 22 Sep 2020 02:00:45 -0400 Subject: [PATCH] adjust sendUserMeta rank comparison includes users with the same rank as the minimum rank for the action when sending the meta frame --- src/channel/channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel/channel.js b/src/channel/channel.js index e08ed1e6..f60b1d5a 100644 --- a/src/channel/channel.js +++ b/src/channel/channel.js @@ -554,7 +554,7 @@ Channel.prototype.sendUserMeta = function (users, user, minrank) { var self = this; var userdata = self.packUserData(user); users.filter(function (u) { - return typeof minrank !== "number" || u.account.effectiveRank > minrank; + return typeof minrank !== "number" || u.account.effectiveRank >= minrank; }).forEach(function (u) { if (u.account.globalRank >= 255) { u.socket.emit("setUserMeta", {