From b940b6f913fd97283a14b9c8207df5382fc71836 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 22 Jan 2013 00:53:30 +0000 Subject: [PATCH] that should do it --- modules/users/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/users/api.js b/modules/users/api.js index 349e3a2..c523d0b 100644 --- a/modules/users/api.js +++ b/modules/users/api.js @@ -41,7 +41,9 @@ var api = function(dbot) { }, 'getAllUsers': function() { - return _.pluck(dbot.db.knownUsers, 'users'); + return _.reduce(dbot.db.knownUsers, function(memo, function(server, name) { + memo[name] = server.users; + }, {}, this); }, 'isKnownUser': function(server, nick) {