diff --git a/modules/users/api.js b/modules/users/api.js index bc34913..cf7745d 100644 --- a/modules/users/api.js +++ b/modules/users/api.js @@ -41,7 +41,7 @@ var api = function(dbot) { }, 'getAllUsers': function() { - return _.reduce(dbot.db.knownUsers, function(memo, function(server, name) { + return _.reduce(dbot.db.knownUsers, function(memo, server, name) { memo[name] = server.users; }, {}, this)); },