Address #270
This commit is contained in:
parent
5312911c15
commit
762b4fa6af
3 changed files with 9 additions and 1 deletions
|
|
@ -272,8 +272,10 @@ function calcUserBreakdown() {
|
|||
"Moderators": 0,
|
||||
"Regular Users": 0,
|
||||
"Guests": 0,
|
||||
"Anonymous": 0,
|
||||
"AFK": 0
|
||||
};
|
||||
var total = 0;
|
||||
$("#userlist .userlist_item").each(function (index, item) {
|
||||
var data = $(item).data("dropdown-info");
|
||||
if(data.rank >= 255)
|
||||
|
|
@ -287,10 +289,14 @@ function calcUserBreakdown() {
|
|||
else
|
||||
breakdown["Guests"]++;
|
||||
|
||||
total++;
|
||||
|
||||
if($(item).find(".icon-time").length > 0)
|
||||
breakdown["AFK"]++;
|
||||
});
|
||||
|
||||
breakdown["Anonymous"] = CHANNEL.usercount - total;
|
||||
|
||||
return breakdown;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue