Send rank packet to target on rank change
This commit is contained in:
parent
626725031f
commit
fdf7900dc8
|
@ -113,7 +113,8 @@ RankModule.prototype.handleRankChange = function (user, data) {
|
|||
}
|
||||
|
||||
receiver.account.channelRank = rank;
|
||||
receiver.account.effectiveRank = rank;
|
||||
receiver.account.effectiveRank = Math.max(receiver.account.globalRank, rank);
|
||||
receiver.socket.emit("rank", receiver.account.effectiveRank);
|
||||
this.channel.logger.log("[mod] " + user.getName() + " set " + name + "'s rank " +
|
||||
"to " + rank);
|
||||
this.channel.broadcastAll("setUserRank", data);
|
||||
|
|
Loading…
Reference in a new issue