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

View file

@ -554,7 +554,7 @@ Channel.prototype.sendUserMeta = function (users, user, minrank) {
var self = this; var self = this;
var userdata = self.packUserData(user); var userdata = self.packUserData(user);
users.filter(function (u) { users.filter(function (u) {
return typeof minrank !== "number" || u.account.effectiveRank > minrank; return typeof minrank !== "number" || u.account.effectiveRank >= minrank;
}).forEach(function (u) { }).forEach(function (u) {
if (u.account.globalRank >= 255) { if (u.account.globalRank >= 255) {
u.socket.emit("setUserMeta", { u.socket.emit("setUserMeta", {