forked from GitHub/dbot
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;
|
var onlineNicks = connections[connection].channels[channel].nicks;
|
||||||
onlineNicks.each(function(nick) {
|
onlineNicks.each(function(nick) {
|
||||||
var nick = dbot.api.users.resolveUser(connection, nick);
|
var user = dbot.api.users.resolveUser(connection, nick);
|
||||||
if(onlineNicks.hasOwnProperty(nick)) {
|
if(onlineNicks.hasOwnProperty(nick)) {
|
||||||
usersData[nick].online = true;
|
usersData[user].online = true;
|
||||||
}
|
}
|
||||||
/*usersData[nick].active = dbot.api.stats.isActive({
|
/*usersData[nick].active = dbot.api.stats.isActive({
|
||||||
'server': connection,
|
'server': connection,
|
||||||
|
Loading…
Reference in New Issue
Block a user