forked from GitHub/dbot
active works!
This commit is contained in:
parent
f4b409bdd8
commit
b8c3ce5dde
@ -37,15 +37,17 @@ 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 = nick.name;
|
||||||
var user = dbot.api.users.resolveUser(connection, nick);
|
var user = dbot.api.users.resolveUser(connection, nick);
|
||||||
if(onlineNicks.hasOwnProperty(nick)) {
|
if(onlineNicks.hasOwnProperty(nick)) {
|
||||||
usersData[user].online = true;
|
usersData[user].online = true;
|
||||||
}
|
}
|
||||||
/*usersData[nick].active = dbot.api.stats.isActive({
|
console.log(user);
|
||||||
|
usersData[user].active = dbot.api.stats.isActive({
|
||||||
'server': connection,
|
'server': connection,
|
||||||
'user': nick,
|
'user': user,
|
||||||
'channel': channel
|
'channel': channel
|
||||||
});*/
|
});
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
res.render('users', { 'name': dbot.config.name, 'connection': connection,
|
res.render('users', { 'name': dbot.config.name, 'connection': connection,
|
||||||
|
Loading…
Reference in New Issue
Block a user