From b8c3ce5dde53bce4bbccd2a0cf845c39c41e3ea7 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 9 Jan 2013 19:28:52 +0000 Subject: [PATCH] active works! --- modules/users/web.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/users/web.js b/modules/users/web.js index 372f860..a40de06 100644 --- a/modules/users/web.js +++ b/modules/users/web.js @@ -37,15 +37,17 @@ var pages = function(dbot) { var onlineNicks = connections[connection].channels[channel].nicks; onlineNicks.each(function(nick) { + var nick = nick.name; var user = dbot.api.users.resolveUser(connection, nick); if(onlineNicks.hasOwnProperty(nick)) { usersData[user].online = true; } - /*usersData[nick].active = dbot.api.stats.isActive({ + console.log(user); + usersData[user].active = dbot.api.stats.isActive({ 'server': connection, - 'user': nick, + 'user': user, 'channel': channel - });*/ + }); }.bind(this)); res.render('users', { 'name': dbot.config.name, 'connection': connection,