adjust sendUserMeta rank comparison

includes users with the same rank as the minimum rank for the action when sending the meta frame
This commit is contained in:
deerfarce 2020-09-22 02:00:45 -04:00 committed by Calvin Montgomery
parent df82d2d4f1
commit 6f8bde91e1
1 changed files with 1 additions and 1 deletions

View File

@ -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", {