mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 12:36:41 -05:00
Update user stats logging
Use room ranks when applicable
This commit is contained in:
parent
ea48c9d4d4
commit
ae92e1600f
6
rooms.js
6
rooms.js
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user