Fix profile/rank for bot logins

This commit is contained in:
Calvin Montgomery 2016-10-06 23:01:42 -07:00
parent 99760b6989
commit ad4ee4bd02
3 changed files with 21 additions and 11 deletions

View file

@ -334,6 +334,12 @@ Channel.prototype.joinUser = function (user, data) {
if (!error) {
user.setChannelRank(rank);
user.setFlag(Flags.U_HAS_CHANNEL_RANK);
if (user.inChannel()) {
self.broadcastAll("setUserRank", {
name: user.getName(),
rank: rank
});
}
}
});
});