Update user stats logging

Use room ranks when applicable
This commit is contained in:
sirDonovan 2015-09-09 14:40:05 -05:00
parent ea48c9d4d4
commit ae92e1600f

View File

@ -1516,7 +1516,11 @@ var ChatRoom = (function () {
if (!user.named) {
++guests;
}
++groups[user.group];
if (this.auth && this.auth[user.userid] && this.auth[user.userid] in groups) {
++groups[this.auth[user.userid]];
} else {
++groups[user.group];
}
}
var entry = '|userstats|total:' + total + '|guests:' + guests;
for (var i in groups) {