diff --git a/modules/users/pages.js b/modules/users/pages.js index 015d7ba..cbc14f6 100644 --- a/modules/users/pages.js +++ b/modules/users/pages.js @@ -1,4 +1,5 @@ var pages = function(dbot) { + var _ = require('underscore')._; var connections = dbot.instance.connections; return { @@ -26,30 +27,25 @@ var pages = function(dbot) { connections[connection].channels.hasOwnProperty(channel)) { var userData = { "active": [], "inactive": [], "offline": []}; - var channelUsers = dbot.db.knownUsers[connection].channelUsers[channel]; - - var onlineNicks = connections[connection].channels[channel].nicks; - for(var i=0;i