3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

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() {
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) {