that should do it

This commit is contained in:
reality 2013-01-22 00:53:30 +00:00
parent 80fec7b212
commit b940b6f913

View File

@ -41,7 +41,9 @@ var api = function(dbot) {
}, },
'getAllUsers': function() { '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) { 'isKnownUser': function(server, nick) {