mirror of https://github.com/calzoneman/sync.git
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:
parent
df82d2d4f1
commit
6f8bde91e1
|
@ -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", {
|
||||
|
|
Loading…
Reference in New Issue