mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
corect users value
This commit is contained in:
parent
03f58bf906
commit
f4b409bdd8
@ -37,9 +37,9 @@ var pages = function(dbot) {
|
||||
|
||||
var onlineNicks = connections[connection].channels[channel].nicks;
|
||||
onlineNicks.each(function(nick) {
|
||||
var nick = dbot.api.users.resolveUser(connection, nick);
|
||||
var user = dbot.api.users.resolveUser(connection, nick);
|
||||
if(onlineNicks.hasOwnProperty(nick)) {
|
||||
usersData[nick].online = true;
|
||||
usersData[user].online = true;
|
||||
}
|
||||
/*usersData[nick].active = dbot.api.stats.isActive({
|
||||
'server': connection,
|
||||
|
Loading…
Reference in New Issue
Block a user